Changeset 265 for trunk/src/game/Pet.cpp

Show
Ignore:
Timestamp:
11/21/08 08:48:46 (17 years ago)
Author:
yumileroy
Message:

*Add m_isAggressive. Only aggressive creatures will call AttackStart? and MoveInLineOfSight?.
*Set melee dmg school for summoned creatures.
*Fix some compiling errors.

Original author: megamage
Date: 2008-11-20 18:54:50-06:00

Files:
1 modified

Legend:

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

    r262 r265  
    14671467 
    14681468    // same spells don't have autocast option 
    1469     if (spellInfo->AttributesEx & SPELL_ATTR_EX_UNAUTOCASTABLE_BY_PET) active = ACT_CAST; 
     1469    if (spellInfo->AttributesEx & SPELL_ATTR_EX_UNAUTOCASTABLE_BY_PET) 
     1470        active = ACT_CAST; 
    14701471 
    14711472    PetSpellMap::iterator itr = m_spells.find(spell_id); 
     
    15431544        CastSpell(this, spell_id, true); 
    15441545    else if(state == PETSPELL_NEW) 
    1545         m_charmInfo->AddSpellToAB(oldspell_id, spell_id, active); 
     1546        m_charmInfo->AddSpellToAB(oldspell_id, spell_id, (ActiveStates)active); 
    15461547 
    15471548    if(newspell->active == ACT_ENABLED)