*Do not allow toggle unautocastable spells for pet.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-21 18:05:43 -06:00
1 parent f814354396
commit ee332629b6
3 files changed
+14 -1

No files matched your search

+1 -1
View File
@@ -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();