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
1 merge request!70"Shrug off" fix
......@@ -688,12 +688,14 @@ function _M:onTakeHit(value, src, death_note)
end
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
self:runStop("detrimental status effect")
self:restStop("detrimental status effect")
end
return ret
end
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