diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-10 22:03:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-10 22:03:10 +0300 |
commit | f9a7f96525c7485de4cf27f973f0b52f5d74f048 (patch) | |
tree | be1ed401dffb832f9d923760ac89ad415cfc4d7f /src/net/eathena/beingrecv.cpp | |
parent | 314147c53d571345436d2def199213fa71f22c9d (diff) | |
download | manaverse-f9a7f96525c7485de4cf27f973f0b52f5d74f048.tar.gz manaverse-f9a7f96525c7485de4cf27f973f0b52f5d74f048.tar.bz2 manaverse-f9a7f96525c7485de4cf27f973f0b52f5d74f048.tar.xz manaverse-f9a7f96525c7485de4cf27f973f0b52f5d74f048.zip |
Add support for initial particle effect for effect from status-effects.xml
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index a40639457..aac0dd914 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -971,9 +971,12 @@ void BeingRecv::processBeingStatusChange(Net::MessageIn &msg) msg.readInt32("val3"); } + IsStart start = msg.getVersion() == 20090121 ? + IsStart_false : IsStart_true; + Being *const dstBeing = actorManager->findBeing(id); if (dstBeing) - dstBeing->setStatusEffect(status, flag); + dstBeing->setStatusEffect(status, flag, start); BLOCK_END("BeingRecv::processBeingStatusChange") } |