mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/GameObject: Properly dismount players on GameObject Use
Closes #23124
(cherry picked from commit dbfc6ce773)
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