Gesture of Pain ignores stun resistance

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Gesture of Pain ignores stun resistance

#1 Post by Hachem_Muche »

GoP can stun unstunnable creatures. Fix:

Code: Select all

Index: game/modules/tome/data/talents/cursed/gestures.lua
===================================================================
--- game/modules/tome/data/talents/cursed/gestures.lua	(revision 6307)
+++ game/modules/tome/data/talents/cursed/gestures.lua	(working copy)
@@ -99,7 +99,7 @@
 
 		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
 			
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Gesture of Pain ignores stun resistance

#2 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply