From efff9fd7951df02cf2dfd26b0f2c9189b1ab8dc3 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Wed, 2 Jan 2013 00:46:53 +0000
Subject: [PATCH] Gesture of Pain correctly checks stun resistance

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

diff --git a/game/modules/tome/data/talents/cursed/gestures.lua b/game/modules/tome/data/talents/cursed/gestures.lua
index 21cfb30a47..63dbf17eeb 100644
--- a/game/modules/tome/data/talents/cursed/gestures.lua
+++ b/game/modules/tome/data/talents/cursed/gestures.lua
@@ -99,7 +99,7 @@ newTalent{
 
 		if hit then
 			local stunChance = t.getStunChance(self, t)
-			if rng.percent(stunChance) then
+			if rng.percent(stunChance) and target:canBe("stun") then
 				target:setEffect(target.EFF_STUNNED, 3, {apply_power=self:combatMindpower()})
 			end
 			
-- 
GitLab