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

Made rest wait out detrimental effects.

parent 7c5b048a
No related branches found
No related tags found
No related merge requests found
......@@ -975,6 +975,14 @@ function _M:restCheck()
end end
if ammo and ammo.combat.shots_left < ammo.combat.capacity then return true end
-- Check for detrimental effects
for id, _ in pairs(self.tmp) do
local def = self.tempeffect_def[id]
if def.status == "detrimental" and (def.decrease or 1) > 0 then
return true
end
end
if self:fireTalentCheck("callbackOnRest", "check") then return true end
else
return true
......
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