Skip to content

abilityAsCast beta ​

Function of @v12-engine/engine

ts
export declare function abilityAsCast(ability: AbilityDef, state: {
    readonly recast?: unknown;
} | undefined): AbilityDef;

The ability as the next cast of it is: itself, or with its window open (state.recast) its recast (AbilityDef.recast): aimed as the recast is (none for one that goes to a mark), its range, its effects, its mana cost, no health cost, no charges, no wind-up and no channel. The same object every time for an ability. What the order, the button and the aim go by; state is an ability's state or what its owner's screen is told of it (AbilityInfo)