BurnySc2 / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
509 stars 157 forks source link

Random Race worker #162

Closed SamOgon-one closed 9 months ago

SamOgon-one commented 1 year ago

Prevent crash after call for random race enemy worker in race_worker[self.enemy_race], before enemy race is discovered

After enemy is discovered, particular race is assigned to enemy. Before enemy is discovered there is no enemy units, it's no matter what this dict returns