dao::abilities::CooldownSet
struct
A cooldown the scripts’ SetCooldown has just set, as reported to OnCooldownSet.
Declared in dao/Abilities.h.
Fields
| Field | Type | |
|---|---|---|
ability |
std::int32_t = 0 |
|
cooldown |
Cooldown |
the cooldown as it reads after the game wrote it |
creature |
ObjectId = kInvalidObject |
|
itemTag |
std::wstring |
the item the ability comes from; empty for the creature’s own |
seconds |
float = 0 |
the seconds the script asked for; 0 ends the cooldown |
took |
bool = false |
Whether the cooldown’s total now equals the seconds asked for, that is, whether the game’s write took effect. On an item’s cooldown it takes while the party holds the item, and may not once the last one is used. |