diff options
| author | Malcrom <malcromdev@gmail.com> | 2013-12-12 16:39:30 -0330 |
|---|---|---|
| committer | Malcrom <malcromdev@gmail.com> | 2013-12-12 16:39:30 -0330 |
| commit | 9d953511187d65d23c0d3dab2ebd8747319b32dd (patch) | |
| tree | 3b923c764ff626addd290ffc751ac518bfbc26b0 /src | |
| parent | 3cee0b7dc78055c8b582133b1c2f8b8a23703a16 (diff) | |
Core/SmartAI: Fixed issue where ranged caster would switch to combat ready state between cast.
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index c367ba0a5ed..ef82c5022fe 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -618,7 +618,7 @@ void SmartAI::JustSummoned(Creature* creature) void SmartAI::AttackStart(Unit* who) { - if (who && me->Attack(who, true)) + if (who && me->Attack(who, me->IsWithinMeleeRange(who))) { SetRun(mRun); if (me->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_ACTIVE) == POINT_MOTION_TYPE) |
