From 655d86275b2178d13bc215033d2c6ada4b0e39e2 Mon Sep 17 00:00:00 2001 From: gvcoman Date: Mon, 10 Nov 2008 22:51:37 -0600 Subject: [svn] Disable the follow and stay commands on charmed units or pets that have aura Bind Sight. --HG-- branch : trunk --- src/game/PetHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp index e308908dd50..f95be3a9352 100644 --- a/src/game/PetHandler.cpp +++ b/src/game/PetHandler.cpp @@ -78,8 +78,8 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data ) switch(flag) { case ACT_COMMAND: //0x0700 - // Possessed pets are only able to attack - if (pet->isPossessed() && spellid != COMMAND_ATTACK) + // Possessed or shared vision pets are only able to attack + if ((pet->isPossessed() || pet->HasAuraType(SPELL_AURA_BIND_SIGHT)) && spellid != COMMAND_ATTACK) return; switch(spellid) -- cgit v1.2.3