mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 23:26:23 +00:00
fix(Core/Wintergrasp): Leaving Wintergrasp with the minimap button (#2018)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user