Core/GameObject: Properly dismount players on GameObject Use
Closes #23124 (cherry picked from commit dbfc6ce773afad4b5a4db77cbb76e64755d3ef94)
This commit is contained in:
@@ -1571,7 +1571,7 @@ void GameObject::Use(Unit* user)
|
||||
if (Player* playerUser = user->ToPlayer())
|
||||
{
|
||||
if (!m_goInfo->IsUsableMounted())
|
||||
playerUser->Dismount();
|
||||
playerUser->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||
|
||||
playerUser->PlayerTalkClass->ClearMenus();
|
||||
if (AI()->GossipHello(playerUser))
|
||||
|
||||
Reference in New Issue
Block a user