fix(Core/BG): Fix double method call on removing a player (#20156)

This commit is contained in:
Angelo Venturini
2024-10-24 09:12:29 -03:00
committed by GitHub
parent b5a8791ae1
commit 47c61b2576

View File

@@ -11339,8 +11339,6 @@ void Player::LeaveBattleground(Battleground* bg)
if (bg->isArena() && (bg->GetStatus() == STATUS_IN_PROGRESS || bg->GetStatus() == STATUS_WAIT_JOIN))
sScriptMgr->OnBattlegroundDesertion(this, ARENA_DESERTION_TYPE_LEAVE_BG);
bg->RemovePlayerAtLeave(this);
// xinef: reset corpse reclaim time
m_deathExpireTime = GameTime::GetGameTime().count();