[svn] Fix a typo that makes pet cannot autocast. Thank Elron for pointing out the mistake.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-12 10:01:57 -06:00
parent 62e2949370
commit 953aa51ea9
+1 -1
View File
@@ -1660,7 +1660,7 @@ void Pet::ToggleAutocast(uint32 spellid, bool apply)
if(const SpellEntry *tempSpell = GetSpellStore()->LookupEntry(spellid)) if(const SpellEntry *tempSpell = GetSpellStore()->LookupEntry(spellid))
if(tempSpell->EffectImplicitTargetA[0] != TARGET_ALL_AROUND_CASTER if(tempSpell->EffectImplicitTargetA[0] != TARGET_ALL_AROUND_CASTER
|| tempSpell->EffectImplicitTargetA[0] != TARGET_CHAIN_DAMAGE) && tempSpell->EffectImplicitTargetA[0] != TARGET_CHAIN_DAMAGE)
return; return;
PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid); PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid);