melee attacker arc

This commit is contained in:
Yunfan Li
2024-09-01 17:33:05 +08:00
parent 52bb8b9770
commit 9aaeb67d3a

View File

@@ -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)