From 38c687fbef497cd1425b4b1ea32ac32c3afe62f8 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Wed, 1 Dec 2010 00:17:34 +0000 Subject: [PATCH] Using magic will correctly put on cooldown all antimagic talents git-svn-id: http://svn.net-core.org/repos/t-engine4@2076 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/Actor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index 63af5c0154..00661b1210 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -1578,7 +1578,7 @@ function _M:antimagicBackslash(turns) if t.mode == "activated" then self.talents_cd[tid] = (self.talents_cd[tid] or 0) + turns elseif t.mode == "sustained" then - self:forceUseTalent(tid, {ignore_energy=true}) + if self:isTalentActive(tid) then self:forceUseTalent(tid, {ignore_energy=true}) end self.talents_cd[tid] = (self.talents_cd[tid] or 0) + turns end done = true -- GitLab