fix(Core/Wintergrasp): Leaving Wintergrasp with the minimap button (#2018)

This commit is contained in:
Poszer
2019-07-04 09:01:24 +02:00
committed by Stoabrogga
parent 5086af8190
commit e14964c52b
3 changed files with 10 additions and 2 deletions

View File

@@ -396,6 +396,13 @@ void Battlefield::AskToLeaveQueue(Player* player)
m_PlayersInQueue[player->GetTeamId()].erase(player->GetGUID());
}
// Called in WorldSession::HandleHearthAndResurrect
void Battlefield::PlayerAskToLeave(Player* player)
{
// Player leaving Wintergrasp, trigger Hearthstone spell.
player->CastSpell(player, 8690, true);
}
// Called in WorldSession::HandleBfEntryInviteResponse
void Battlefield::PlayerAcceptInviteToWar(Player* player)
{