summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-31 21:21:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-31 21:21:37 +0300
commite8f29b1cff5360c9d16587b91d72863af4763d08 (patch)
tree19f69b1cda80609c2c040e4ad6340b84dfd96b2b /src/being/actorsprite.cpp
parent2ff2ea08e8d158961d4d38c06ba93c52b919026d (diff)
downloadmanaplus-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.gz
manaplus-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.bz2
manaplus-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.xz
manaplus-e8f29b1cff5360c9d16587b91d72863af4763d08.zip
Add support for dead trick status effect (hercules)
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r--src/being/actorsprite.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index fa5301664..11099af01 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -75,7 +75,8 @@ ActorSprite::ActorSprite(const BeingId id) :
mCursorPaddingY(0),
mMustResetParticles(false),
mPoison(false),
- mHaveCart(false)
+ mHaveCart(false),
+ mTrickDead(false)
{
}
@@ -240,6 +241,8 @@ void ActorSprite::updateStatusEffect(const int index, const Enable newStatus)
setHaveCart(newStatus == Enable_true);
else if (effect->isRiding())
setRiding(newStatus == Enable_true);
+ else if (effect->isTrickDead())
+ setTrickDead(newStatus == Enable_true);
handleStatusEffect(effect, index);
}