mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Pets): Disable /petfollow command while using vehicle. (#8304)
Fixes #8156
This commit is contained in:
@@ -442,6 +442,12 @@ void WorldSession::HandlePetAction(WorldPacket& recvData)
|
||||
if (pet->GetTypeId() == TYPEID_PLAYER && flag != ACT_COMMAND && flag != ACT_REACTION)
|
||||
return;
|
||||
|
||||
// Do not follow itself vehicle
|
||||
if (spellid == COMMAND_FOLLOW && _player->IsOnVehicle(pet))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetPlayer()->m_Controlled.size() == 1)
|
||||
HandlePetActionHelper(pet, guid1, spellid, flag, guid2);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user