[Bug Fix] Camping was causing player to leave raid, causing unexpected behavior (#3299)

This commit is contained in:
Aeadoin 2023-04-22 10:03:40 -04:00 committed by GitHub
parent 8e51bf8b19
commit ed09281f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,9 +189,10 @@ bool Client::Process() {
} }
if (camp_timer.Check()) { if (camp_timer.Check()) {
Raid* raid = entity_list.GetRaidByClient(this); Raid *myraid = entity_list.GetRaidByClient(this);
if (raid) if (myraid) {
raid->RemoveMember(this->GetName()); myraid->MemberZoned(this);
}
LeaveGroup(); LeaveGroup();
Save(); Save();
if (GetMerc()) if (GetMerc())