From 281f09df966e03695c1cd38b270f7685ce2dcbfb Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Thu, 8 Mar 2018 16:59:14 +0100
Subject: [PATCH] Items taht can save life get notified if they do with
 "on_resurrect" field

---
 game/modules/tome/dialogs/DeathDialog.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/game/modules/tome/dialogs/DeathDialog.lua b/game/modules/tome/dialogs/DeathDialog.lua
index f9419ea839..f5e632b007 100644
--- a/game/modules/tome/dialogs/DeathDialog.lua
+++ b/game/modules/tome/dialogs/DeathDialog.lua
@@ -267,6 +267,7 @@ function _M:use(item)
 		self:restoreResources(self.actor)
 		world:gainAchievement("UNSTOPPABLE", actor)
 		self.actor:check("on_resurrect", "consume", o)
+		o:check("on_resurrect", self.actor)
 		game:saveGame()
 	end
 end
-- 
GitLab