Core/AI: Replace many Unit::IsHostileTo with Unit::IsValidAttackTarget or Creature::canCreatureAttack.

This commit is contained in:
QAston committed 2011-09-17 00:56:59 +02:00
1 parent 580264b5a5
commit fe25ce4fa3
27 files changed
+30 -49

No files matched your search

@@ -487,7 +487,7 @@ public:
if (!who)
return;
if (who->isTargetableForAttack() && me->IsHostileTo(who))
if (me->IsValidAttackTarget(who))
if (me->IsWithinDistInMap(who, 20) && me->IsWithinLOSInMap(who))
AttackStart(who);
}