s2client-api icon indicating copy to clipboard operation
s2client-api copied to clipboard

Cooldown in AbilityData?

Open LiliumAtratum opened this issue 7 years ago • 0 comments

Many abilities have some time requirements - e.g. cast-time and/or cooldown. Would it be possible to expose that information in the AbilityData?

In my particular case:

I am trying to learn the rate at which Protoss gateway units can be produced. Normal construction time in a gateway is available in: bot->Observation()->GetUnitTypeData()[sc2::UNIT_TYPEID::PROTOSS_ZEALOT].build_time but I cannot find a way to learn about the warpgate cooldown after warp-in. I would expect something in: bot->Observation()->GetAbilityData()[sc2::UNIT_ACTIONID::TRAINWARP_ZEALOT].???

A cooldown field would solve my problem.

Or maybe I can learn that info somewhere else?

LiliumAtratum avatar Oct 26 '18 12:10 LiliumAtratum