Changeset 229 for trunk/src/game/ThreatManager.cpp
- Timestamp:
- 11/19/08 13:48:34 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/ThreatManager.cpp
r198 r229 133 133 { 134 134 Creature* creature = (Creature* ) getSourceUnit(); 135 online = getTarget()->isInAccess ablePlaceFor(creature);135 online = getTarget()->isInAccessiblePlaceFor(creature); 136 136 if(!online) 137 137 { 138 138 if(creature->AI()->canReachByRangeAttack(getTarget())) 139 online = true; // not access able but stays online139 online = true; // not accessible but stays online 140 140 } 141 141 else … … 156 156 iOnline = pIsOnline; 157 157 if(!iOnline) 158 setAccessibleState(false); // if not online that not access able as well158 setAccessibleState(false); // if not online that not accessible as well 159 159 fireStatusChanged(ThreatRefStatusChangeEvent(UEV_THREAT_REF_ONLINE_STATUS, this)); 160 160 } … … 279 279 assert(target); // if the ref has status online the target must be there ! 280 280 281 // some units are prefer ed in comparison to others281 // some units are preferred in comparison to others 282 282 if(iter != lastRef && (target->IsImmunedToDamage(pAttacker->GetMeleeDamageSchoolMask(), false) || 283 283 target->hasUnitState(UNIT_STAT_CONFUSED | UNIT_STAT_FLEEING)