Skip to content

Commit

Permalink
Refactor zergling engagement logic in MyBot class
Browse files Browse the repository at this point in the history
  • Loading branch information
Drekken committed Dec 21, 2023
1 parent 32e365b commit b2d93aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def do_zergling_engagement(
):
print(f"Executing do_zergling_engagement with {len(zerglings)} zerglings")
# map center as teh default A-move target
target = self.game_info.map_center
attack_target = self.game_info.map_center

"""Engage enemy units with zerglings and use stutter step behavior.
Expand All @@ -79,8 +79,8 @@ def do_zergling_engagement(
if closest_enemy:
zergling_maneuver.add(StutterUnitBack(zergling, closest_enemy))

zergling_maneuver.add(AMove(zergling, target))
self.register_behavior(zergling_maneuver)
zergling_maneuver.add(AMove(zergling, attack_target))
self.register_behavior(zergling_maneuver)

def do_roach_pylon_attack(
self,
Expand Down

0 comments on commit b2d93aa

Please sign in to comment.