Pacification Hex 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

Pacification Hex ignores stun resistance

#1 Post by Hachem_Muche »

As the title. Fix:

Code: Select all

Index: game/modules/tome/data/timed_effects/mental.lua
===================================================================
--- game/modules/tome/data/timed_effects/mental.lua	(revision 6354)
+++ game/modules/tome/data/timed_effects/mental.lua	(working copy)
@@ -1545,13 +1546,13 @@
 	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
 	end,
 	activate = function(self, eff)
-		self:setEffect(self.EFF_DAZED, 3, {})
+		if self:canBe("stun") then self:setEffect(self.EFF_DAZED, 3, {}) end
 	end,
 }
 
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

PureQuestion
Master Artificer
Posts: 726
Joined: Fri Feb 03, 2012 3:53 am

Re: Pacification Hex ignores stun resistance

#2 Post by PureQuestion »

It ought to be checking daze, not stun.

jinsediaoying
Wyrmic
Posts: 284
Joined: Thu Mar 29, 2012 2:11 am

Re: Pacification Hex ignores stun resistance

#3 Post by jinsediaoying »

PureQuestion wrote:It ought to be checking daze, not stun.
daze resistance does not exist, all daze check stun resistance instead

PureQuestion
Master Artificer
Posts: 726
Joined: Fri Feb 03, 2012 3:53 am

Re: Pacification Hex ignores stun resistance

#4 Post by PureQuestion »

I thought for sur-

Well, w/e then.

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

Re: Pacification Hex ignores stun resistance

#5 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 ;)

CaptainTrips
Wyrmic
Posts: 227
Joined: Thu Mar 10, 2011 9:10 pm

Re: Pacification Hex ignores stun resistance

#6 Post by CaptainTrips »

Wow, pacification hex is about to get alot less annoying (or useful, depending on your class :P ). Thanks for that!

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: Pacification Hex ignores stun resistance

#7 Post by Hachem_Muche »

The SVN update does not change the initial daze effect. So it's intended that the initial application ignores stun resistance?
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

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

Re: Pacification Hex ignores stun resistance

#8 Post by darkgod »

nope; 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