[svn] Disable the follow and stay commands on charmed units or pets that have aura Bind Sight.

--HG--
branch : trunk
This commit is contained in:
gvcoman
2008-11-10 22:51:37 -06:00
parent 943b4b68b9
commit 655d86275b

View File

@@ -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)