Blizzard / Blizzard/s2client-api

Cooldown in AbilityData?

Open
#288 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
280
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.