Skip to content
Snippets Groups Projects
Commit 8f50d6d5 authored by dg's avatar dg
Browse files

FIx haymaker when targetting things bellow 0 hp (like a blurred mortality creature)

git-svn-id: http://svn.net-core.org/repos/t-engine4@5814 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0b1c09a2
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,7 @@ newTalent{
-- Try to insta-kill
if hit then
if target:checkHit(self:combatPhysicalpower(), target:combatPhysicalResist(), 0, 95, 5 - self:getTalentLevel(t) / 2) and target:canBe("instakill") and target.life > 0 and target.life < target.max_life * 0.2 then
if target:checkHit(self:combatPhysicalpower(), target:combatPhysicalResist(), 0, 95, 5 - self:getTalentLevel(t) / 2) and target:canBe("instakill") and target.life > target.die_at and target.life < target.max_life * 0.2 then
-- KILL IT !
game.logSeen(target, "%s feels the pain of the death blow!", target.name:capitalize())
target:die(self)
......
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