summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp28
-rw-r--r--src/net/eathena/beinghandler.h2
2 files changed, 30 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index a52e53bf9..33d86fe8c 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -1697,4 +1697,32 @@ void BeingHandler::processSkillEntry(Net::MessageIn &msg) const
msg.readUInt8("level");
}
+void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const
+{
+ BLOCK_START("BeingHandler::processPlayerStop")
+ if (!actorManager)
+ {
+ BLOCK_END("BeingHandler::processPlayerStop")
+ return;
+ }
+
+ // Change in players' flags
+ const int id = msg.readInt32("account id");
+ Being *const dstBeing = actorManager->findBeing(id);
+ if (!dstBeing)
+ return;
+
+ const uint16_t stunMode = msg.readInt16("stun mode");
+ uint32_t statusEffects = msg.readInt16("status effect");
+ statusEffects |= (static_cast<uint32_t>(msg.readInt16("opt?"))) << 16;
+ msg.readUInt8("Unused?");
+
+ dstBeing->setStunMode(stunMode);
+ dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>(
+ (statusEffects >> 16) & 0xffff));
+ dstBeing->setStatusEffectBlock(16, static_cast<uint16_t>(
+ statusEffects & 0xffff));
+ BLOCK_END("BeingHandler::processPlayerStop")
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h
index 9867cb27b..607e42acf 100644
--- a/src/net/eathena/beinghandler.h
+++ b/src/net/eathena/beinghandler.h
@@ -99,6 +99,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
void processSkillGroundNoDamage(Net::MessageIn &msg) const;
void processSkillEntry(Net::MessageIn &msg) const;
+
+ void processPlaterStatusChange(Net::MessageIn &msg) const;
};
} // namespace EAthena