Changeset 205 for trunk/src/game

Show
Ignore:
Timestamp:
11/19/08 13:46:10 (17 years ago)
Author:
yumileroy
Message:

[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.

Original author: megamage
Date: 2008-11-09 23:54:02-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Pet.cpp

    r174 r205  
    16581658        return; 
    16591659 
     1660    if(const SpellEntry *tempSpell = GetSpellStore()->LookupEntry(spellid)) 
     1661        if(tempSpell->EffectImplicitTargetA[0] != TARGET_ALL_AROUND_CASTER 
     1662            || tempSpell->EffectImplicitTargetA[0] != TARGET_CHAIN_DAMAGE) 
     1663            return;     
     1664 
    16601665    PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid); 
    16611666