From 04f4a3a708939c516b9ee21e9d428800e4e95047 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sun, 24 Feb 2013 21:02:13 +0000 Subject: [PATCH] Pacification hex checks for stun immunity git-svn-id: http://svn.net-core.org/repos/t-engine4@6463 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/timed_effects/mental.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/data/timed_effects/mental.lua b/game/modules/tome/data/timed_effects/mental.lua index ca19977c66..fcedecae46 100644 --- a/game/modules/tome/data/timed_effects/mental.lua +++ b/game/modules/tome/data/timed_effects/mental.lua @@ -1564,7 +1564,7 @@ newEffect{ on_lose = function(self, err) return "#Target# is free from the hex.", "-Pacification Hex" end, -- Damage each turn on_timeout = function(self, eff) - if not self:hasEffect(self.EFF_DAZED) and rng.percent(eff.chance) then + if not self:hasEffect(self.EFF_DAZED) and rng.percent(eff.chance) and self:canBe("stun") then self:setEffect(self.EFF_DAZED, 3, {}) if not self:checkHit(eff.power, self:combatSpellResist(), 0, 95, 15) then eff.dur = 0 end end -- GitLab