Page 1 of 1

[1.0.4] Grappling/Crushing Hold fails to apply Strangle Hold

Posted: Wed Jun 26, 2013 3:43 pm
by jotwebe
Seems there's a mistake in

grappling.lua (113)

Code: Select all

if grappled and not target.no_breath and not target:attr("undead") and target:canBe("silence") then
				target:setEffect(target.EFF_STRANGLE_HOLD, duration, {src=self, power=t.getDamage(self, t) * 1.5})
			else
				target:setEffect(target.EFF_CRUSHING_HOLD, duration, {src=self, power=t.getDamage(self, t)})
			end
Compare with oozing horrors, where strangle hold works:

horrors.lua (line 583)

Code: Select all

if not target:attr("no_breath") and not target:attr("undead") and target:canBe("silence") then
					target:setEffect(target.EFF_STRANGLE_HOLD, t.getDuration(self, t), {src=self, power=t.getDamage(self, t) * 1.5, damtype="SLIME"})
				else
					target:setEffect(target.EFF_CRUSHING_HOLD, t.getDuration(self, t), {src=self, power=t.getDamage(self, t), damtype="SLIME"})
				end
target:attr("no_breath") good, target.no_breath bad.

Re: [1.0.4] Grappling/Crushing Hold fails to apply Strangle

Posted: Thu Jun 27, 2013 2:04 am
by jotwebe

Re: [1.0.4] Grappling/Crushing Hold fails to apply Strangle

Posted: Mon Jul 01, 2013 9:38 am
by darkgod
fixed