aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgvcoman <none@none>2008-11-10 22:51:37 -0600
committergvcoman <none@none>2008-11-10 22:51:37 -0600
commit655d86275b2178d13bc215033d2c6ada4b0e39e2 (patch)
treea5c10fdc348dd4a37aa39f91a6ff4fba23c40664 /src
parent943b4b68b94691d02811c516f51bc608ed9ff76d (diff)
[svn] Disable the follow and stay commands on charmed units or pets that have aura Bind Sight.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/PetHandler.cpp4
1 files changed, 2 insertions, 2 deletions
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)