Skip to content

Commit

Permalink
Add super() call to on_step method - fixed stutter step micro
Browse files Browse the repository at this point in the history
  • Loading branch information
Drekken committed Dec 21, 2023
1 parent 0276ce7 commit d948b05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ class MyBot(AresBot):
combat_manager = None

def __init__(self, game_step_override: Optional[int] = None):

super().__init__(game_step_override)

async def on_step(self, iteration: int):
await super(MyBot, self).on_step(iteration)
print(f"Game Loop Iteration: {iteration}")
# retrieves zergling and roaches
zerglings = self.units(UnitTypeId.ZERGLING)
Expand Down

0 comments on commit d948b05

Please sign in to comment.