summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 49fc8cd77..be7899830 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -1411,10 +1411,15 @@ void BeingHandler::processPlaterStatusChange2(Net::MessageIn &msg)
void BeingHandler::processPlaterStatusChangeNoTick(Net::MessageIn &msg)
{
- // +++ probably need show some effect?
- msg.readInt16("index");
- msg.readInt32("account id");
- msg.readUInt8("state");
+ const uint16_t status = msg.readInt16("index");
+ const int id = msg.readInt32("account id");
+ const bool flag = msg.readUInt8("state") ? 1 : 0;
+
+ Being *const dstBeing = actorManager->findBeing(id);
+ if (!dstBeing)
+ return;
+
+ dstBeing->setStatusEffect(status, flag);
}
void BeingHandler::processBeingResurrect(Net::MessageIn &msg)