Skip to content
Snippets Groups Projects
Commit 8f9b0beb authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Made rest wait for air if regenerating air.

parent 05f0baf5
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