mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/GameObject: Properly dismount players on GameObject Use
Closes #23124
This commit is contained in:
@@ -1417,7 +1417,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