ReadyFacts beta
Interface of @v12-engine/engine
export interface ReadyFactsWhat there is to know about an ability and its user, for whether it can be used right now
Members
charges
charges?: number;Uses left, of an ability with charges (chargesLeft): none, and it is not ready
cooldown
cooldown: number;Seconds until it can be used again
decided
decided?: Message | null;What the simulation's canCast hook decided instead, when it told the screen: a reason, or null for none
grounded
grounded?: boolean;A buff keeps it from rushing or jumping of its own (BuffDef.grounded), and the ability would (a dash, a blink)
health
health: number;The caster's health now, for abilities that cost health
healthPerMana
healthPerMana?: number;Health it pays for each point of mana an ability costs, in place of the mana (BuffDef.paysWithHealth): none, or left out, for one that pays with mana
item
item?: boolean;It comes from something carried: items ask for no mana, and silence does not stop them
level
level: number;0 for one not learned yet
mana
mana: number;The caster's mana now, to meet the ability's mana cost
maxHealth
maxHealth: number;The caster's largest health, which a health cost may not take below
noManaCosts
noManaCosts?: boolean;The debug switch that makes abilities cost nothing
silenced
silenced?: boolean;Whether the caster is silenced, which stops its spells but not items or brought-along spells
spell
spell?: boolean;One of the spells the hero brought along rather than learned: silence does not stop those either