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

Fixed shrugoffs for player.

parent 222f085a
No related branches found
No related tags found
No related merge requests found
...@@ -688,12 +688,14 @@ function _M:onTakeHit(value, src, death_note) ...@@ -688,12 +688,14 @@ function _M:onTakeHit(value, src, death_note)
end end
function _M:on_set_temporary_effect(eff_id, e, p) function _M:on_set_temporary_effect(eff_id, e, p)
mod.class.Actor.on_set_temporary_effect(self, eff_id, e, p) local ret = mod.class.Actor.on_set_temporary_effect(self, eff_id, e, p)
if e.status == "detrimental" and not e.no_stop_resting and p.dur > 0 then if e.status == "detrimental" and not e.no_stop_resting and p.dur > 0 then
self:runStop("detrimental status effect") self:runStop("detrimental status effect")
self:restStop("detrimental status effect") self:restStop("detrimental status effect")
end end
return ret
end end
function _M:heal(value, src) function _M:heal(value, src)
......
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