From 9aaeb67d3afbbb66f82748bcdee7d8bf977565df Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 1 Sep 2024 17:33:05 +0800 Subject: [PATCH] melee attacker arc --- src/strategy/values/AttackerWithoutAuraTargetValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/values/AttackerWithoutAuraTargetValue.cpp b/src/strategy/values/AttackerWithoutAuraTargetValue.cpp index e99d0f3e..99489af4 100644 --- a/src/strategy/values/AttackerWithoutAuraTargetValue.cpp +++ b/src/strategy/values/AttackerWithoutAuraTargetValue.cpp @@ -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)