Skip to content
Snippets Groups Projects
Commit 99e91095 authored by dg's avatar dg
Browse files

Getting a detrimental status effect stops resting/running

git-svn-id: http://svn.net-core.org/repos/t-engine4@4598 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2119eb1f
No related branches found
No related tags found
No related merge requests found
......@@ -476,6 +476,15 @@ function _M:onTakeHit(value, src)
return ret
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" then
self:runStop("detrimental status effect")
self:restStop("detrimental status effect")
end
end
function _M:heal(value, src)
-- Difficulty settings
if game.difficulty == game.DIFFICULTY_EASY then
......
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