From 82af7a40f99336cc77ee399076b8af2e53301647 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Wed, 6 Jun 2012 07:32:47 +0000
Subject: [PATCH] Fearscape will not trigger if the creaure casting it dies in
 the same turn it casts it

git-svn-id: http://svn.net-core.org/repos/t-engine4@5202 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/data/talents/corruptions/shadowflame.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/game/modules/tome/data/talents/corruptions/shadowflame.lua b/game/modules/tome/data/talents/corruptions/shadowflame.lua
index 6e74108577..60b21c44c2 100644
--- a/game/modules/tome/data/talents/corruptions/shadowflame.lua
+++ b/game/modules/tome/data/talents/corruptions/shadowflame.lua
@@ -156,6 +156,7 @@ newTalent{
 		local dam = self:combatTalentSpellDamage(t, 12, 140)
 
 		game:onTickEnd(function()
+			if self:attr("dead") then return end
 			local oldzone = game.zone
 			local oldlevel = game.level
 
-- 
GitLab