summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-26 03:06:42 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-26 03:06:42 +0300
commit89068d61b30e19f69f53df05b0542c37c12397ea (patch)
tree629a90c68ab05a8c492aeda1136de62af7866395 /src/net/eathena/partyrecv.cpp
parent40895672b5bbb32192c3e36c8fcd3125e2c9baf2 (diff)
downloadmanaverse-89068d61b30e19f69f53df05b0542c37c12397ea.tar.gz
manaverse-89068d61b30e19f69f53df05b0542c37c12397ea.tar.bz2
manaverse-89068d61b30e19f69f53df05b0542c37c12397ea.tar.xz
manaverse-89068d61b30e19f69f53df05b0542c37c12397ea.zip
Add packet SMSG_PARTY_MEMBER_DEAD 0x0ab2.
Diffstat (limited to 'src/net/eathena/partyrecv.cpp')
-rw-r--r--src/net/eathena/partyrecv.cpp11
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