[svn] Fix pet spells: only AOE and enemy target spells are autocastable.

Script for quest: First Trial. Original patch by Bufu (SD2), adapted by Patro.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-09 23:54:02 -06:00
parent a04ad26b9e
commit f2250030cd
3 changed files with 26 additions and 1 deletions
+5
View File
@@ -1657,6 +1657,11 @@ void Pet::ToggleAutocast(uint32 spellid, bool apply)
if(IsPassiveSpell(spellid))
return;
if(const SpellEntry *tempSpell = GetSpellStore()->LookupEntry(spellid))
if(tempSpell->EffectImplicitTargetA[0] != TARGET_ALL_AROUND_CASTER
|| tempSpell->EffectImplicitTargetA[0] != TARGET_CHAIN_DAMAGE)
return;
PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid);
int i;