mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/SmartAI): Ranged Creatures should have relaxed stances while outside melee range (#24623)
This commit is contained in:
@@ -859,7 +859,7 @@ void SmartAI::AttackStart(Unit* who)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (who && me->Attack(who, me->IsWithinMeleeRange(who) || _currentRangeMode))
|
if (who && me->Attack(who, me->IsWithinMeleeRange(who)))
|
||||||
{
|
{
|
||||||
if (!me->HasUnitState(UNIT_STATE_NO_COMBAT_MOVEMENT))
|
if (!me->HasUnitState(UNIT_STATE_NO_COMBAT_MOVEMENT))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user