BurnySc2 / python-sc2

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

AbilityId.MORPH_LIBERATORAGMODE not working #189

Open Felixvillas opened 10 months ago

Felixvillas commented 10 months ago

Hi~

I want to switch the LIBERATOR to the state where they can attack ground units. Here is my python code.

# unit.type_id == UnitTypeId.LIBERATOR
unit(AbilityId.MORPH_LIBERATORAGMODE, target)  # cannot working
# unit(AbilityId.MORPH_LIBERATORAGMODE)  # still cannot working 

Both of them cannot work. It's bug or it's my error?

BurnySc2 commented 10 months ago

Hello, is the target a unit or a position? According to https://github.com/BurnySc2/python-sc2/blob/f175e8160762dcba9a1524b3491cf5f522e01fde/sc2/dicts/unit_abilities.py#L322-L324 it is the correct abilityID

Felixvillas commented 10 months ago

Hello, is the target a unit or a position? According to

https://github.com/BurnySc2/python-sc2/blob/f175e8160762dcba9a1524b3491cf5f522e01fde/sc2/dicts/unit_abilities.py#L322-L324

it is the correct abilityID

Yes. I tried passing the unit or position as target parameters, but both of them didn't work.