diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 17:54:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 17:54:41 +0300 |
commit | 86d451e352abe27edca69107bc7cb380f4336aa9 (patch) | |
tree | f1ea1fdaad45905b5139c666cfe3ce0cf36a1eea /src/net/eathena/battlegroundrecv.cpp | |
parent | 48c215204404187e69b60c912c345429bcd37934 (diff) | |
download | ManaVerse-86d451e352abe27edca69107bc7cb380f4336aa9.tar.gz ManaVerse-86d451e352abe27edca69107bc7cb380f4336aa9.tar.bz2 ManaVerse-86d451e352abe27edca69107bc7cb380f4336aa9.tar.xz ManaVerse-86d451e352abe27edca69107bc7cb380f4336aa9.zip |
Add packet SMSG_BATTLE_UPDATE_HP 0x0a0e.
Diffstat (limited to 'src/net/eathena/battlegroundrecv.cpp')
-rw-r--r-- | src/net/eathena/battlegroundrecv.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/net/eathena/battlegroundrecv.cpp b/src/net/eathena/battlegroundrecv.cpp index ecbeb5ef2..515dc8ad6 100644 --- a/src/net/eathena/battlegroundrecv.cpp +++ b/src/net/eathena/battlegroundrecv.cpp @@ -107,9 +107,17 @@ void BattleGroundRecv::processBattleUpdateHp(Net::MessageIn &msg) { UNIMPLIMENTEDPACKET; msg.readBeingId("account id"); - msg.readString(24, "name"); - msg.readInt16("hp"); - msg.readInt16("max hp"); + if (msg.getVersion() >= 20140613) + { + msg.readInt32("hp"); + msg.readInt32("max hp"); + } + else + { + msg.readString(24, "name"); + msg.readInt16("hp"); + msg.readInt16("max hp"); + } } } // namespace EAthena |