[1.0.4] Grappling/Crushing Hold fails to apply Strangle Hold
Posted: Wed Jun 26, 2013 3:43 pm
Seems there's a mistake in
grappling.lua (113)
Compare with oozing horrors, where strangle hold works:
horrors.lua (line 583)
target:attr("no_breath") good, target.no_breath bad.
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
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