[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user