Skip to content
Snippets Groups Projects
Commit fcd03964 authored by DarkGod's avatar DarkGod
Browse files

Lunge correctly respects disarm immunity

parent 9c20daf8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -219,8 +219,10 @@ newTalent{
-- Attack
local dam = t.getDamage(self,t)
local spd, hitted, dmg = self:attackTargetWith(target, offweapon.combat, nil, self:getOffHandMult(offweapon.combat, dam))
if hitted then
if hitted and target:canBe("disarm") then
target:setEffect(target.EFF_DISARMED, t.getDuration(self, t), {apply_power=self:combatAttack()})
else
game.logSeen(target, "%s resists the blow!", target.name:capitalize())
end
return true
end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment