Skip to content

AnyEffect beta ​

TypeAlias of @v12-engine/engine

ts
export type AnyEffect = {
    type: keyof EffectTypes;
} & EffectCommon & Partial<EffectFields>;

An effect seen as any type may be, every field of the engine's by its name: for what reads effects of every type alike (an ability's tooltip numbers, the rules' check of what they name). A handler reads its own type's (EffectOf)