aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/ScarletMonastery
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2011-09-17 00:56:59 +0200
committerQAston <qaston@gmail.com>2011-09-17 00:56:59 +0200
commitfe25ce4fa3ce306beebc4c95b22cd14052a92566 (patch)
treee8bbe02f5b43e8d648230cb2532dd24780ff113e /src/server/scripts/EasternKingdoms/ScarletMonastery
parent580264b5a56f742e5eaf1eeb2ea3729740e36478 (diff)
Core/AI: Replace many Unit::IsHostileTo with Unit::IsValidAttackTarget or Creature::canCreatureAttack.
Diffstat (limited to 'src/server/scripts/EasternKingdoms/ScarletMonastery')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp
index e99f2c2a387..80cbcedda7c 100644
--- a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp
@@ -800,7 +800,7 @@ public:
void MoveInLineOfSight(Unit* who)
{
- if (!who || !who->isTargetableForAttack() || !me->IsHostileTo(who) || me->getVictim())
+ if (!who || !me->IsValidAttackTarget(who) || me->getVictim())
return;
me->AddThreat(who, 0.0f);