From e5d542968174330e196b7bc02d02fe850eea83c4 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Tue, 21 Jul 2020 19:54:57 +0200
Subject: [PATCH] Fixed Lich self-resurrect to work with minions too

---
 game/modules/tome/data/timed_effects/other.lua | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/data/timed_effects/other.lua b/game/modules/tome/data/timed_effects/other.lua
index b7e3f2b119..4532aae9ed 100644
--- a/game/modules/tome/data/timed_effects/other.lua
+++ b/game/modules/tome/data/timed_effects/other.lua
@@ -3986,8 +3986,15 @@ newEffect{
 	subtype = { lich = true },
 	status = "neutral",
 	parameters = { },
+	callbackOnSummonKill = function(self, t, minion, who, death_note)
+		if who.rank >= 3.5 then
+			eff.success = true
+			self:removeEffect(self.EFF_LICH_HUNGER)
+			game.bignews:say(120, "#DARK_ORCHID#Lichform regeneration is complete!#{normal}#")
+		end
+	end,
 	callbackOnKill = function(self, eff, who, death_note)
-		if who.rank >= 3.2 then
+		if who.rank >= 3.5 then
 			eff.success = true
 			self:removeEffect(self.EFF_LICH_HUNGER)
 			game.bignews:say(120, "#DARK_ORCHID#Lichform regeneration is complete!#{normal}#")
-- 
GitLab