google-deepmind / google-deepmind/pysc2

How to know skill cooldowns?

Open
#293 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.