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

Unstoppable correctly prevents all healing

git-svn-id: http://svn.net-core.org/repos/t-engine4@3566 51575b47-30f0-44d4-a5cc-537603b46e54
parent fbc17ae1
No related branches found
No related tags found
No related merge requests found
......@@ -2214,10 +2214,12 @@ newEffect{
activate = function(self, eff)
eff.kills = 0
eff.tmpid = self:addTemporaryValue("unstoppable", 1)
eff.healid = self:addTemporaryValue("no_life_regen", 1)
end,
deactivate = function(self, eff)
self:heal(eff.kills * eff.hp_per_kill * self.max_life / 100)
self:removeTemporaryValue("unstoppable", eff.tmpid)
self:removeTemporaryValue("no_life_regen", eff.healid)
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