Dentosal / python-sc2

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

The `has_add_on` documentation is misleading or implementation is reverse #259

Closed Saloshp closed 5 years ago

Saloshp commented 5 years ago

The documentation says:

has_add_on | bool if add_on_tag == 0

Testing unit.has_add_on returns False for structures with add_ons

tweakimp commented 5 years ago

This is fixed in the dev branch but not yet merged. See https://github.com/Dentosal/python-sc2/blob/develop/sc2/unit.py#L597

I also corrected the wiki entry.