mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Spells: Fix logic in 20eeeaf597
This commit is contained in:
@@ -275,7 +275,7 @@ void WorldSession::HandleGameObjectUseOpcode(WorldPacket& recvData)
|
||||
{
|
||||
// ignore for remote control state
|
||||
if (_player->m_mover != _player)
|
||||
if (!_player->IsOnVehicle(_player->m_mover) || !(_player->IsMounted() && obj->GetGOInfo()->IsUsableMounted()))
|
||||
if (!(_player->IsOnVehicle(_player->m_mover) || _player->IsMounted()) && !obj->GetGOInfo()->IsUsableMounted())
|
||||
return;
|
||||
|
||||
obj->Use(_player);
|
||||
|
||||
Reference in New Issue
Block a user