Page 1 of 1

Pacification Hex ignores stun resistance

Posted: Sat Jan 19, 2013 1:13 am
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,
 }
 

Re: Pacification Hex ignores stun resistance

Posted: Sat Jan 19, 2013 2:55 am
by PureQuestion
It ought to be checking daze, not stun.

Re: Pacification Hex ignores stun resistance

Posted: Sat Jan 19, 2013 3:50 am
by jinsediaoying
PureQuestion wrote:It ought to be checking daze, not stun.
daze resistance does not exist, all daze check stun resistance instead

Re: Pacification Hex ignores stun resistance

Posted: Sat Jan 19, 2013 4:59 am
by PureQuestion
I thought for sur-

Well, w/e then.

Re: Pacification Hex ignores stun resistance

Posted: Sun Feb 24, 2013 9:02 pm
by darkgod
fixed

Re: Pacification Hex ignores stun resistance

Posted: Sun Feb 24, 2013 9:08 pm
by CaptainTrips
Wow, pacification hex is about to get alot less annoying (or useful, depending on your class :P ). Thanks for that!

Re: Pacification Hex ignores stun resistance

Posted: Mon Feb 25, 2013 5:03 pm
by Hachem_Muche
The SVN update does not change the initial daze effect. So it's intended that the initial application ignores stun resistance?

Re: Pacification Hex ignores stun resistance

Posted: Mon Feb 25, 2013 6:32 pm
by darkgod
nope; fixed