aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.cpp
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-02-28 01:56:13 +0100
committerShauren <shauren.trinity@gmail.com>2016-04-08 20:39:42 +0200
commit3f6b215fcae543aa4ac0a6cfadebf61a7157575d (patch)
tree7b6ad915b2661247231de72354a0f930edb3fe7f /src/server/game/AI/CreatureAI.cpp
parentf4baf7c180e7adc48d0184595c6b866814852c23 (diff)
Fix some behavioral weirdness resulting from 79a945d5 - thanks ccrs.
(cherry picked from commit bfac62c5c914efe1576d39504d5dd75f11f41237)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r--src/server/game/AI/CreatureAI.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index 33de8b09123..352ae635878 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -134,10 +134,7 @@ void CreatureAI::MoveInLineOfSight(Unit* who)
return;
if (me->HasReactState(REACT_AGGRESSIVE) && me->CanStartAttack(who, false))
- {
- me->AddThreat(who, 0.0f); // ensure our initial target is the first thing added to threat list so we don't randomly switch off if DoZoneInCombat is called during the EnterCombat hook
AttackStart(who);
- }
//else if (who->GetVictim() && me->IsFriendlyTo(who)
// && me->IsWithinDistInMap(who, sWorld->getIntConfig(CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS))
// && me->CanStartAttack(who->GetVictim(), true)) /// @todo if we use true, it will not attack it when it arrives