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

Fixed Unstoppable

parent 056add04
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ end
-- @return true/false if the actor died and the actual damage done
function _M:takeHit(value, src, death_note)
if self.onTakeHit then value = self:onTakeHit(value, src, death_note) end
if value <= 0 then return false, 0 end
self.life = self.life - value
self.changed = true
if self.life <= self.die_at and not self.dead then
......
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