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

Merge branch 'master' of git.net-core.org:darkgod/t-engine4

parents 99aab8e0 9aba5f18
No related branches found
No related tags found
No related merge requests found
......@@ -934,6 +934,7 @@ function _M:restCheck()
if self:getVim() < self:getMaxVim() and self.vim_regen > 0 then return true end
if self:getEquilibrium() > self:getMinEquilibrium() and self.equilibrium_regen < 0 then return true end
if self.life < self.max_life and self.life_regen> 0 then return true end
if self.air < self.max_air and self.air_regen > 0 then return true end
for act, def in pairs(game.party.members) do if game.level:hasEntity(act) and not act.dead then
if act.life < act.max_life and act.life_regen > 0 and not act:attr("no_life_regen") then return true end
end 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