Skip to content
Snippets Groups Projects
Commit 3a0a12e8 authored by dg's avatar dg
Browse files

Meditation breaks on damage

git-svn-id: http://svn.net-core.org/repos/t-engine4@2122 51575b47-30f0-44d4-a5cc-537603b46e54
parent 28bddda4
No related branches found
No related tags found
No related merge requests found
......@@ -618,7 +618,10 @@ function _M:onTakeHit(value, src)
if self:hasEffect(self.EFF_DAZED) then
self:removeEffect(self.EFF_DAZED)
end
-- Un-meditate
if self:hasEffect(self.EFF_MEDITATION) then
self:removeEffect(self.EFF_MEDITATION)
end
-- remove stalking if there is an interaction
if self.stalker and src and self.stalker == src then
self.stalker:removeEffect(self.EFF_STALKER)
......
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