Skip to content
Snippets Groups Projects
Commit 21fac3e3 authored by dg's avatar dg
Browse files

Detrimental status effects that are shrugged off will not stop running

git-svn-id: http://svn.net-core.org/repos/t-engine4@5848 51575b47-30f0-44d4-a5cc-537603b46e54
parent d9be0980
No related branches found
No related tags found
No related merge requests found
......@@ -542,7 +542,7 @@ end
function _M:on_set_temporary_effect(eff_id, e, p)
mod.class.Actor.on_set_temporary_effect(self, eff_id, e, p)
if e.status == "detrimental" and not e.no_stop_resting then
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
......
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