effectIndex beta
Function of @v12-engine/engine
ts
export declare function effectIndex(ability: AbilityDef, effect: EffectDef): number | undefined;Where an effect is in its ability, as the screen is told it (MissileState.effect, the strike's effect, AreaState.effect): its place counting every effect of the ability first to last, each before those it holds (the first of effects is 0, the first it holds 1…). One a chain made (EffectCommon.when) counts as the one written. Undefined for one that is not in the ability (made up in code)