Skip to content

Commit

Permalink
fix: anti armour missile actually works
Browse files Browse the repository at this point in the history
  • Loading branch information
raspersc2 committed Jan 17, 2025
1 parent 84afcc0 commit 91c52ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ares/behaviors/combat/individual/use_aoe_ability.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def execute(self, ai: "AresBot", config: dict, mediator: ManagerMediator) -> boo

if self._can_cast(ai, mediator, position, radius):
# need to cast on the actual unit
if self.ability_id == AbilityId.PARASITICBOMB_PARASITICBOMB:
if self.ability_id in {
AbilityId.PARASITICBOMB_PARASITICBOMB,
AbilityId.EFFECT_ANTIARMORMISSILE,
}:
self.unit(self.ability_id, cy_closest_to(position, self.targets))
else:
self.unit(self.ability_id, Point2(position))
Expand Down

0 comments on commit 91c52ab

Please sign in to comment.