summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyrecv.cpp
diff options
context:
space:
mode:
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