summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-13 11:04:15 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-13 17:41:29 +0300
commit3931471031744a47fd2eaf7adf52d59eb51d17a4 (patch)
tree34e86f6b4e6aee116a5f486f79f9a33e170a45a5 /src/net/eathena/beinghandler.cpp
parent981f1272f2355653c1e7e7233cd37b0f9ebfc335 (diff)
downloadmanaplus-3931471031744a47fd2eaf7adf52d59eb51d17a4.tar.gz
manaplus-3931471031744a47fd2eaf7adf52d59eb51d17a4.tar.bz2
manaplus-3931471031744a47fd2eaf7adf52d59eb51d17a4.tar.xz
manaplus-3931471031744a47fd2eaf7adf52d59eb51d17a4.zip
eathena: update to hercules version 20150000.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp15
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>(