diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-31 21:21:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-31 21:21:37 +0300 |
commit | e8f29b1cff5360c9d16587b91d72863af4763d08 (patch) | |
tree | 19f69b1cda80609c2c040e4ad6340b84dfd96b2b /src/being/actorsprite.cpp | |
parent | 2ff2ea08e8d158961d4d38c06ba93c52b919026d (diff) | |
download | manaverse-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.gz manaverse-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.bz2 manaverse-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.xz manaverse-e8f29b1cff5360c9d16587b91d72863af4763d08.zip |
Add support for dead trick status effect (hercules)
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r-- | src/being/actorsprite.cpp | 5 |
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); } |