fix(Core/Pets): Disable /petfollow command while using vehicle. (#8304)
Fixes #8156
This commit is contained in:
parent
1138d837a1
commit
bc451d2eca
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue