diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-26 03:06:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-26 03:06:42 +0300 |
commit | 89068d61b30e19f69f53df05b0542c37c12397ea (patch) | |
tree | 629a90c68ab05a8c492aeda1136de62af7866395 /src/net/eathena/partyrecv.cpp | |
parent | 40895672b5bbb32192c3e36c8fcd3125e2c9baf2 (diff) | |
download | plus-89068d61b30e19f69f53df05b0542c37c12397ea.tar.gz plus-89068d61b30e19f69f53df05b0542c37c12397ea.tar.bz2 plus-89068d61b30e19f69f53df05b0542c37c12397ea.tar.xz plus-89068d61b30e19f69f53df05b0542c37c12397ea.zip |
Add packet SMSG_PARTY_MEMBER_DEAD 0x0ab2.
Diffstat (limited to 'src/net/eathena/partyrecv.cpp')
-rw-r--r-- | src/net/eathena/partyrecv.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp index 93e28e944..21b97dfad 100644 --- a/src/net/eathena/partyrecv.cpp +++ b/src/net/eathena/partyrecv.cpp @@ -434,4 +434,15 @@ void PartyRecv::processPartyAutoItemSettingsContinue(Net::MessageIn &msg, } } +void PartyRecv::processPartyMemberDead(Net::MessageIn &msg) +{ + const BeingId id = msg.readBeingId("account id"); + const int isDead = msg.readUInt8("is dead"); + PartyMember *const member = Ea::taParty->getMember(id); + if (member != nullptr && isDead != 0) + { + member->setHp(0); + } +} + } // namespace EAthena |