Core/Wintergrasp: fix leaving Wintergrasp via the minimap button.

This commit is contained in:
SnapperRy
2016-10-04 19:13:11 +02:00
parent 63215dd15a
commit b60db6c44e
3 changed files with 11 additions and 2 deletions

View File

@@ -375,6 +375,14 @@ void Battlefield::AskToLeaveQueue(Player* player)
m_PlayersInQueue[player->GetTeamId()].erase(player->GetGUID());
}
// Called in WorldSession::HandleHearthAndResurrect
void Battlefield::PlayerAskToLeave(Player* player)
{
// Player leaving Wintergrasp, teleport to Dalaran.
// ToDo: confirm teleport destination.
player->TeleportTo(571, 5804.1499f, 624.7710f, 647.7670f, 1.6400f);
}
// Called in WorldSession::HandleBfEntryInviteResponse
void Battlefield::PlayerAcceptInviteToWar(Player* player)
{