*Do not allow toggle unautocastable spells for pet.
--HG-- branch : trunk
This commit is contained in:
1 parent
f814354396
commit
ee332629b6
3 files changed
+14
-1
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user