fix (Core/Wintergrasp) hearthstone was visibly on cooldown when player left WG (#21620)
Co-authored-by: Hexadecimal <hd@hd.hd>
This commit is contained in:
@@ -410,8 +410,8 @@ void Battlefield::AskToLeaveQueue(Player* player)
|
|||||||
// Called in WorldSession::HandleHearthAndResurrect
|
// Called in WorldSession::HandleHearthAndResurrect
|
||||||
void Battlefield::PlayerAskToLeave(Player* player)
|
void Battlefield::PlayerAskToLeave(Player* player)
|
||||||
{
|
{
|
||||||
// Player leaving Wintergrasp, trigger Hearthstone spell.
|
// Player leaving Wintergrasp, teleport to homebind possition.
|
||||||
player->CastSpell(player, 8690, true);
|
player->TeleportTo(player->m_homebindMapId, player->m_homebindX, player->m_homebindY, player->m_homebindZ, player->GetOrientation());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called in WorldSession::HandleBfEntryInviteResponse
|
// Called in WorldSession::HandleBfEntryInviteResponse
|
||||||
|
|||||||
Reference in New Issue
Block a user