aboutsummaryrefslogtreecommitdiff
path: root/src/game/PetHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-21 18:05:43 -0600
committermegamage <none@none>2009-03-21 18:05:43 -0600
commitee332629b6af6b12079497f5d635e15fedee87b2 (patch)
tree15a094036518df37c05105643a6203a63997a395 /src/game/PetHandler.cpp
parentf8143543968706f85f9886021ca1e258fba4df24 (diff)
*Do not allow toggle unautocastable spells for pet.
--HG-- branch : trunk
Diffstat (limited to 'src/game/PetHandler.cpp')
-rw-r--r--src/game/PetHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp
index 088f0ff2c58..ae12bce690b 100644
--- a/src/game/PetHandler.cpp
+++ b/src/game/PetHandler.cpp
@@ -560,7 +560,7 @@ void WorldSession::HandlePetSpellAutocastOpcode( WorldPacket& recvPacket )
}
// do not add not learned spells/ passive spells
- if(!pet->HasSpell(spellid) || IsPassiveSpell(spellid))
+ if(!pet->HasSpell(spellid) || IsAutocastableSpell(spellid))
return;
CharmInfo *charmInfo = pet->GetCharmInfo();