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

Merge branch 'rest_wait_detriment' into 'master'

Rest wait detrimental effects

Don't you hate it when a weaver young comes to you, pins you to the ground, then dies but you cannot autoexplore for 4 more turns?
Because by God I do.
parents 7a7ee5ff 676ee48a
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