DrInfy / sharpy-sc2

Python framework for rapid development of Starcraft 2 AI bots
MIT License
69 stars 28 forks source link

Fix ChronoUnit count logic #105

Closed DuncanDHall closed 2 years ago

DuncanDHall commented 2 years ago

Would cast count+1 times, rather than count times as advertised in the docstring, and also would not not cast infinite times on default count=0 https://github.com/DrInfy/sharpy-sc2/blob/5e1251d6c564aa18f543816d6e3794c06af108fa/sharpy/plans/acts/protoss/chrono_unit.py#L11-L19