From 290544b8b2abbd1aa750498edea67f99952c4a78 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Mon, 2 May 2011 23:45:01 +0000 Subject: [PATCH] Silence wont prevent sustained talents desactivation git-svn-id: http://svn.net-core.org/repos/t-engine4@3298 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 ae0ce37f0c..34a9f9ac79 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -1809,7 +1809,7 @@ function _M:preUseTalent(ab, silent, fake) return false end -- When silenced you can deactivate spells but not activate them - if ab.no_silence and self:attr("silence") and (ab.mode ~= "sustained" or self:isTalentActive(ab.id)) then + if ab.no_silence and self:attr("silence") and (ab.mode ~= "sustained" or not self:isTalentActive(ab.id)) then if not silent then game.logSeen(self, "%s is silenced and cannot use %s.", self.name:capitalize(), ab.name) end return false end -- GitLab