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/Unit.cpp

    r264 r265  
    84928492        target->SetStandState(PLAYER_STATE_NONE); 
    84938493 
    8494     if(!target->isInCombat() && target->GetTypeId() != TYPEID_PLAYER && ((Creature*)target)->AI()) 
     8494    if(!target->isInCombat() && target->GetTypeId() != TYPEID_PLAYER 
     8495        && ((Creature*)target)->isAggressive() && ((Creature*)target)->AI()) 
    84958496        ((Creature*)target)->AI()->AttackStart(this); 
    84968497