aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/CreatureAI.cpp')
-rw-r--r--src/game/CreatureAI.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp
index 62396d528be..fb8f37ae492 100644
--- a/src/game/CreatureAI.cpp
+++ b/src/game/CreatureAI.cpp
@@ -131,15 +131,6 @@ void CreatureAI::MoveInLineOfSight(Unit *who)
// me->GetMotionMaster()->MoveChase(who->getVictim());
}
-void CreatureAI::SelectNearestTarget(Unit *who)
-{
- if (me->getVictim() && me->GetDistanceOrder(who, me->getVictim()) && me->canAttack(who))
- {
- me->getThreatManager().modifyThreatPercent(me->getVictim(), -100);
- me->AddThreat(who, 1000000.0f);
- }
-}
-
void CreatureAI::EnterEvadeMode()
{
if (!_EnterEvadeMode())