320 bool noPriorityTargetFound =
false;
322 ThreatContainer::StorageType::const_iterator lastRef =
iThreatList.end();
325 for (ThreatContainer::StorageType::const_iterator iter =
iThreatList.begin(); iter !=
iThreatList.end() && !found;)
327 currentRef = (*iter);
338 if (currentRef == currentVictim)
339 currentVictim =
NULL;
346 noPriorityTargetFound =
true;
357 if (currentVictim == currentRef || currentRef->
getThreat() <= 1.1f * currentVictim->
getThreat())
360 currentRef = currentVictim;
StorageType iThreatList
Definition: ThreatManager.h:195
float getThreat() const
Definition: ThreatManager.h:61
arena_t NULL
Definition: jemalloc_internal.h:624
bool IsImmunedToDamage(SpellSchoolMask meleeSchoolMask) const
Definition: Unit.cpp:9214
bool HasNegativeAuraWithInterruptFlag(uint32 flag, ObjectGuid guid=ObjectGuid::Empty) const
Definition: Unit.cpp:4288
Definition: ThreatManager.h:49
bool IsWithinMeleeRange(const Unit *obj, float dist=MELEE_RANGE) const
Definition: Unit.cpp:508
bool CanCreatureAttack(Unit const *victim, bool force=true) const
Definition: Creature.cpp:2170
SpellSchoolMask GetMeleeDamageSchoolMask() const override
Definition: Creature.h:527
#define ASSERT
Definition: Errors.h:55
TO * getTarget() const
Definition: Reference.h:94