From 8f9b0beb6511c02e021d396a4b2c45948f1f4eb4 Mon Sep 17 00:00:00 2001 From: Alexander Sedov <alex0player@gmail.com> Date: Sun, 28 Dec 2014 11:40:34 +0300 Subject: [PATCH] Made rest wait for air if regenerating air. --- game/modules/tome/class/Player.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua index 97697d255a..50398fdfbd 100644 --- a/game/modules/tome/class/Player.lua +++ b/game/modules/tome/class/Player.lua @@ -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 -- GitLab