google-deepmind / google-deepmind/pysc2
How to know skill cooldowns?
Open
- Dominant language
- Python
- Stars
- 8.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I want to cast a skill from a given unit, and I want to make sure that the unit has enough energy and that the skill is not on cooldown before doing so.
For example, skills can be InjectLarva, CorosiveBile, Blink, YamatoGun... Not all have them require energy, and not all of them have cooldowns but some do and some need both.
I can get the energy with unit.energy but I can't see how I can get the skill cooldown for that unit. Is there any way I can get it?
I use the raw features and actions.
Thank you
Contributor guide
Assessment
This issue has not been assessed yet.