mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
melee attacker arc
This commit is contained in:
@@ -52,7 +52,7 @@ Unit* MeleeAttackerWithoutAuraTargetValue::Calculate()
|
|||||||
if (!bot->IsWithinMeleeRange(unit))
|
if (!bot->IsWithinMeleeRange(unit))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (checkArc && !bot->HasInArc(M_PI, unit))
|
if (checkArc && !bot->HasInArc(CAST_ANGLE_IN_FRONT, unit))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (unit->GetHealth() < max_health)
|
if (unit->GetHealth() < max_health)
|
||||||
|
|||||||
Reference in New Issue
Block a user