mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
melee attacker arc
This commit is contained in:
parent
52bb8b9770
commit
9aaeb67d3a
@ -52,7 +52,7 @@ Unit* MeleeAttackerWithoutAuraTargetValue::Calculate()
|
||||
if (!bot->IsWithinMeleeRange(unit))
|
||||
continue;
|
||||
|
||||
if (checkArc && !bot->HasInArc(M_PI, unit))
|
||||
if (checkArc && !bot->HasInArc(CAST_ANGLE_IN_FRONT, unit))
|
||||
continue;
|
||||
|
||||
if (unit->GetHealth() < max_health)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user