diff options
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 32305c4b1..d9229caae 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -1007,7 +1007,10 @@ void BeingHandler::processBeingVisible(Net::MessageIn &msg) dstBeing->setLevel(level); msg.readInt16("font"); - // here map hp/hp for PACKETVER >= 20150000 for now unsupported + // +++ need use hp and boss flag + msg.readInt32("max hp"); + msg.readInt32("hp"); + msg.readInt8("is boss"); dstBeing->setStunMode(stunMode); dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>( @@ -1177,7 +1180,10 @@ void BeingHandler::processBeingMove(Net::MessageIn &msg) dstBeing->setLevel(level); msg.readInt16("font"); - // here map hp/hp for PACKETVER >= 20150000 for now unsupported + // +++ need use hp and boss flag + msg.readInt32("max hp"); + msg.readInt32("hp"); + msg.readInt8("is boss"); dstBeing->setStunMode(stunMode); dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>( @@ -1336,7 +1342,10 @@ void BeingHandler::processBeingSpawn(Net::MessageIn &msg) dstBeing->setLevel(level); msg.readInt16("font"); - // here map hp/hp for PACKETVER >= 20150000 for now unsupported + // +++ need use hp and boss flag + msg.readInt32("max hp"); + msg.readInt32("hp"); + msg.readInt8("is boss"); dstBeing->setStunMode(stunMode); dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>( |