Skip to content

EffectTypes beta ​

Interface of @v12-engine/engine

ts
export interface EffectTypes

The types of effect there are, each with the fields it reads: the engine's, and a game's own, added by declaration merging as it defines them (declare module '@v12-engine/engine' { interface EffectTypes { arrowStun: { ... } } }, with defineEffect)

Members ​

after ​

ts
after: Pick<EffectFields, 'delay' | 'effects' | 'impact'>;

effects happen at the spot, delay seconds from now

allyWard ​

ts
allyWard: {
        buff: string;
        spent: string;
    };

A passive's, in a game with the default items (defaultItemsPack): keeps buff on the allies within radius of the carrier (itself too) while the carrier does not carry spent: Dawnmender's ward, whose onFatal spends it (wardSpent)

attach ​

ts
attach: Pick<EffectFields, 'rider' | 'duration' | 'onEnd'>;

One unit rides another, in a game with the moves pack (movesPack): the rider (the caster, or the unit it was cast on) is out of the world (World.setHidden: not found, not hit, in nobody's way) and goes where its host goes, until the host dies or leaves the world, duration seconds are up, or whoever cast it casts the ability again (on the host, or with a point: the ability's cooldown starts then). Then it is back where its host is, and onEnd happens in the rider's name, at the point the recast gave (where it is otherwise), the host its target: Yuumi's You and Me!, Kalista's Fate's Call (the ally thrown where she aims)

aura ​

ts
aura: {
        buff: string;
    };

A passive's buff on what is around the carrier, kept up by the ability system

ts
blink: Pick<EffectFields, 'distance'>;

The caster is elsewhere at once, distance away at the most

buff ​

ts
buff: {
        buff: string;
    } & Pick<EffectFields, 'duration' | 'stack' | 'amount' | 'scaling' | AmountFormula>;

Puts a buff on what it reaches: for its own time or duration, one more of it with stack. With an amount (and scaling, the formulas), its shield holds that rather than the buff's own shield

burn ​

ts
burn: {
        act: 'light' | 'putOut';
        how?: string;
        seconds?: number;
    };

Sets alight what burns where it lands, by the caster (light), or puts it out (putOut), in a game with the burning pack (burningPack): over its radius or shape, else the unit it was cast on, else what stands where it landed. how: the kind of burning it sets off (a blight, frost: the look's burning.how and the death's), the thing's own when left out; seconds: how long it burns. Of what it finds, what its fields of whom say (affects: enemies lights the caster's enemies' alone; kinds, tags, layers, where, sort, limit), everything that burns, trees among it, when it says none. A fire arrow, a torch, a rain spell

charged ​

ts
charged: Pick<EffectFields, 'effects' | 'otherwise'>;

effects when the ability went off charged, otherwise when it did not

cleanse ​

ts
cleanse: object;

Takes off what holds them up from what it reaches (allies when it says nothing): harmful stuns, roots, silences, disarms, controls, grounds and slows, not a suppression nor being thrown up (isCleansable): Remove Scurvy

convert ​

ts
convert: Pick<EffectFields, 'duration'>;

What it reaches becomes the caster's owner's (World.setOwner), for duration seconds or for good: Charm, Dominate. Heroes and structures are left as they are. In a game with the ability changes pack

damage ​

ts
damage: Pick<EffectFields, 'amount' | 'scaling' | 'damageType' | 'how' | AmountFormula>;

Hurts what it reaches: amount, with what of the caster's stats adds to it (scaling), of a type (magic when left out)

dash ​

ts
dash: Pick<EffectFields, 'distance' | 'leap' | 'climb' | 'speed' | 'effects' | 'buff' | 'to' | 'through' | 'collide' | 'stops' | 'onWall'>;

The caster rushes to the spot (a leap with leap), and effects happen around where it ends. In a game with the moves pack (movesPack): to a unit (to: 'target', after it as it moves, or through it), with what happens to who it meets (collide, stops) and at a wall (onWall)

detect ​

ts
detect: Pick<EffectFields, 'duration'>;

Finds what is invisible around the spot: the caster's team sees it for duration seconds

dispel ​

ts
dispel: Pick<EffectFields, 'amount'>;

Takes the buffs off what it reaches, and hurts what is summoned by amount

exchange ​

ts
exchange: {
        sell: string;
        buy: string;
        rate: number;
        amount: Scaled;
    };

Trades amount of a resource of the caster's owner (sell) for another (buy), rate of it for each one sold: a marketplace's (presetMarket, exchange in code). Nothing of it with less than amount to sell

foliage ​

ts
foliage: {
        act: 'ignite' | 'extinguish' | 'ruin' | 'regrow' | 'clear';
        layer?: string;
        how?: 'cut' | 'crush' | 'scorch';
        over?: number;
    };

Does something to the grass and bushes where it lands, in a game with the foliage pack (foliagePack): sets it alight (ignite, by the caster), puts it out (extinguish), ruins it (ruin, as how says: cut when left out), has it grow back (regrow, over over seconds) or takes it away (clear). Over its radius or shape, the cell it landed on when it has neither; on layer, every layer of the pack when left out. It acts on cells, not on what stands there: the fields of whom (affects, kinds, tags, where, limit...) say nothing to it. A fire arrow, a mower, a rain spell

gain ​

ts
gain: {
        pool: string;
    } & Pick<EffectFields, 'amount' | 'scaling'>;

Fills a pool of what it reaches (pool, one of UnitTypeDef.pools) by amount (empties it, under 0), in a game with the resources pack (resourcesPack): allies when it says nothing, the caster with on: 'caster' (Tryndamere's fury from an onHit)

grantAbility ​

ts
grantAbility: {
        ability: string;
    } & Pick<EffectFields, 'atLevel' | 'duration' | 'uses'>;

Gives what it reaches an ability (ability) at atLevel (the effect's level), for duration seconds or uses casts, or for good, in a game with the ability changes pack (abilityChangesPack): allies when it says nothing

heal ​

ts
heal: Pick<EffectFields, 'amount' | 'scaling' | AmountFormula>;

Heals what it reaches, more for the caster's heal and shield power

if ​

ts
if: Pick<EffectFields, 'caster' | 'target' | 'effects' | 'otherwise'>;

effects when what it asks holds, otherwise when it does not: of the caster and of the target (UnitCondition: a buff, health below a share, a hero, tags, enemy or ally; or code) and by chance. On the unit it was cast on, or, with a radius or shape, on each within it (as affects says, enemies when it says nothing), each then the target of what it does. Execute below 20%, Holy Light on the undead, Bash's chance (conditionHolds)

illusion ​

ts
illusion: Pick<EffectFields, 'count' | 'duration'> & {
        dealt?: number;
        taken?: number;
    };

Makes count copies of the target, for duration seconds: they deal dealt of its damage (a third when left out) and take taken times what they are dealt (twice when left out)

knockback ​

ts
knockback: Pick<EffectFields, 'distance' | 'speed' | 'leap' | 'direction' | 'collide' | 'stops' | 'onWall'>;

Throws what it reaches distance away from the caster. In a game with the moves pack (movesPack): which way (direction), with what happens to who the thrown one meets (collide, stops) and at a wall (onWall)

mana ​

ts
mana: Pick<EffectFields, 'amount' | 'scaling'>;

Gives mana to what it reaches

manaBurn ​

ts
manaBurn: Pick<EffectFields, 'amount' | 'scaling' | 'damageType'> & {
        ratio?: number;
    };

Mana burn, in a game with its pack (manaBurnPack): takes amount of the mana of what it reaches, and hurts it by as much as it took, times ratio (1 when left out), magic damage unless damageType says

missile ​

ts
missile: Pick<EffectFields, 'speed' | 'distance' | 'count' | 'spread' | 'homing' | 'toPoint' | 'delay' | 'sight' | 'blocked' | 'pierce' | 'arc' | 'bounce' | 'effects' | 'onEnd' | 'returns' | 'falloff' | 'hitsOnReturn' | 'seek' | 'onWall' | 'split' | 'steer'>;

Sends a missile: how fast, how far, how many, and what it does to what it passes through and where it ends

morph ​

ts
morph: {
        into: string;
    } & Pick<EffectFields, 'duration' | 'toggle' | 'back'>;

Turns the caster into another unit type where it stands (into), a form (takeForm): its level, experience, items, buffs and the share of its health and mana kept, what it was told going on, and the form's abilities learned at the levels its form says (HeroDef.forms). For duration seconds, or until cast again (toggle), or both; back says what turns it back

nightCompanion ​

ts
nightCompanion: {
        unit: string;
    };

A passive's: a unit of the carrier's at its side at night, its summon (summoned), gone by day: Wolfhide Charm. In a game with the default items

onAbilityHit ​

ts
onAbilityHit: Pick<EffectFields, 'effects' | 'cooldown'>;

A passive's: effects happen to an enemy an ability of the carrier hurt, each time one does (not its attacks, not a trigger's effects), the damage in EffectContext.damage: Essence Theft, Phenomenal Evil

onCast ​

ts
onCast: Pick<EffectFields, 'effects' | 'cooldown'>;

A passive's: effects happen to the carrier whenever it casts

onDamaged ​

ts
onDamaged: Pick<EffectFields, 'attack' | 'melee' | 'effects' | 'cooldown'>;

A passive's: effects happen to whoever hurt the carrier (by an attack with attack, from up close with melee), in the carrier's name, the damage it took in EffectContext.damage (byDamage): Thorns Aura, Frost Armor, Spiked Carapace, Defensive Ball Curl. Not for damage a trigger's effects did: two of them never echo

onFatal ​

ts
onFatal: Pick<EffectFields, 'health' | 'effects' | 'cooldown'>;

A passive's: instead of dying of a blow or a kill, the carrier is left with health of its max (all of it when left out) and effects happen to it, in its name, once in cooldown seconds: Reincarnation, Guardian Angel (an item's), Anivia's Rebirth (a morph into the egg), Zilean's Chronoshift (a buff's)

onHit ​

ts
onHit: Pick<EffectFields, 'whileBuff' | 'effects' | 'every' | 'consumes' | 'cooldown' | 'slot' | 'priority'>;

A passive's (an ability's, an item's or a buff's: BuffDef.passive): effects happen to the target of every attack of the carrier that lands, while it carries whileBuff; of every everyth, using up a stack of whileBuff with consumes, once in cooldown seconds

onKill ​

ts
onKill: Pick<EffectFields, 'attack' | 'whileBuff' | 'effects' | 'cooldown'>;

A passive's: effects happen around whoever the carrier kills (by an attack, with attack; while it carries whileBuff)

onLowHealth ​

ts
onLowHealth: Pick<EffectFields, 'below' | 'effects' | 'cooldown'>;

A passive's: effects happen to the carrier once its health falls below below of its max (as it falls past it), once in cooldown seconds: Mana Barrier

outOfFights ​

ts
outOfFights: {
        buff: string;
        after?: number;
    };

A passive's: buff on the carrier while it is out of fights, neither hurt nor attacking for after seconds (5 when left out): Shadow Cowl's, Wanderer's Boots' speed. In a game with the default items

pull ​

ts
pull: Pick<EffectFields, 'seconds' | 'toPoint' | 'effects'>;

Drags what it reaches to the caster's edge (or to where it landed, toPoint) over seconds, after the caster as it moves; effects happen to it as it arrives, in the caster's name. While dragged it does nothing of its own (its orders wait, it casts nothing, uses nothing) and nothing else moves it (a knockback, a dash). Who is rushing somewhere already, and structures, are not pulled

quicken ​

ts
quicken: {
        spell: string;
        part: number;
    };

A passive's: the caster's ability spell (by id, a hero spell's: reap) cools down part faster (0.5: half again). Nothing for a caster without it. In a game with the default items

raiseDead ​

ts
raiseDead: {
        unit?: string;
    } & Pick<EffectFields, 'duration' | 'count' | 'as'>;

Raises count of the corpses around the spot as units of unit, for duration seconds or for good

refresh ​

ts
refresh: Pick<EffectFields, 'ability'>;

An ability of the caster is ready again: ability, or the one the effect belongs to

refreshAbilities ​

ts
refreshAbilities: {
        ultimate?: boolean;
    };

The caster's abilities are ready again: the ones it learns (HeroDef.learns), not its ultimate unless ultimate, not what its items do. Nightfang's kill. In a game with the default items

removeBuff ​

ts
removeBuff: {
        buff: string;
    } & Pick<EffectFields, 'stacks'>;

Takes buff off what it reaches: stacks of it, or all of it (every one of it there is) when left out. A mark popped, stacks spent

resetAttack ​

ts
resetAttack: object;

The caster is ready to strike again at once

reveal ​

ts
reveal: Pick<EffectFields, 'duration'>;

The caster's team sees the spot for a while

revealUnit ​

ts
revealUnit: Pick<EffectFields, 'duration'>;

The caster's team sees each unit it reaches for duration seconds (4 when left out), wherever it goes: in the fog, in a bush, invisible or camouflaged, in a game with the vision pack (visionPack). A unit, not a spot (reveal): Rengar's Thrill of the Hunt on the champions about him, Pyke's Death from Below, a Dust of Appearance

revive ​

ts
revive: Pick<EffectFields, 'count'>;

Brings back the corpses of the caster's side around the spot (within radius, 6) as what they were, their owners' again and whole, count of them at most (all when left out): Resurrection

reward ​

ts
reward: Pick<EffectFields, 'amount'>;

Gives the caster's owner amount of the game's currency: a kill near the Ring of the Old King. In a game with the default items

sendProxy ​

ts
sendProxy: Pick<EffectFields, 'speed' | 'effects'>;

Sends the unit the effect goes off from (a proxy of the caster's: EffectCommon.origin) to where it was aimed, at speed (at once when left out), and its effects happen where it arrives, in the caster's name, from it: Orianna's ball flown to where she aims, Azir's soldiers sent. Nothing where it goes off from the caster

spawn ​

ts
spawn: {
        unit: string;
    } & Pick<EffectFields, 'duration' | 'owner' | 'looksLike' | 'data' | 'line' | 'ring'>;

Brings a unit into the world where it landed, the caster's (the neutral player's with owner), for duration seconds or for good, with data and the looks of the target or the caster. In a game with the ground objects pack (groundObjectsPack): so many along a line or round a ring, each knowing who put it down (madeBy)

stealAbility ​

ts
stealAbility: Pick<EffectFields, 'pick' | 'duration' | 'uses'>;

Takes one of the abilities of the unit it was cast on (pick: its ultimate when left out) and puts it in the place of the one the effect belongs to, at that one's level, for uses casts (one when left out) or duration seconds, then back: Sylas's Hijack. In a game with the ability changes pack

summon ​

ts
summon: {
        unit: string;
    } & Pick<EffectFields, 'count'> & {
        lifetime?: Scaled;
        spread?: number;
        follow?: boolean;
        aggro?: 'nearest' | 'mastersAttacker' | 'none';
        diesWithMaster?: boolean;
    };

Brings count (1) units of unit around where it landed, spread cells from it (1.5), for lifetime seconds (for good when left out): the caster's summons (summoned). With nothing to attack they walk with the caster (follow, true); aggro says whom they go for (mastersAttacker when left out: whoever hits the caster, then the nearest); they die with the caster unless diesWithMaster is false

swap ​

ts
swap: object;

The caster and the unit it was cast on trade places, at once, in a game with the moves pack (movesPack). Nothing where either is a structure, rushing or dragged, or the target cannot be moved (BuffDef.unstoppable)

swapAbility ​

ts
swapAbility: {
        ability: string;
    } & Pick<EffectFields, 'from' | 'atLevel' | 'duration' | 'uses'>;

The caster's ability from (the one the effect belongs to) gives way to ability in its place on the card, at its level (or atLevel), for duration seconds or uses casts, then back; for good with neither. In a game with the ability changes pack: a stance, an awakened ability, a weapon of a set

teleport ​

ts
teleport: Pick<EffectFields, 'to'>;

The caster is elsewhere at once, however far (to)

toggle ​

ts
toggle: {
        buff: string;
    };

Puts a buff on the caster for as long as it likes, or takes it off

tome ​

ts
tome: {
        gain?: StatChange;
        xp?: number;
        levels?: number;
    };

A tome's, in a game with the tomes pack (tomesPack): what it reaches gains gain for good (a point of strength), a hero xp experience and levels levels

townPortal ​

ts
townPortal: Pick<EffectFields, 'count'>;

A town portal, in a game with the portals pack (portalsPack): the caster and as many as count (12 when left out) of its own units within radius (7) of it are at once at its side's home nearest where it was aimed (homeOf)

wardSpent ​

ts
wardSpent: {
        buff: string;
        spent: string;
    } & Pick<EffectFields, 'duration'>;

Of a ward's trigger (allyWard), on the ally it saved: puts spent on whoever gave the ward for duration seconds and takes the ward (buff) off everyone it gave it to: one save a while, for all of them

zone ​

ts
zone: Pick<EffectFields, 'duration' | 'effects' | 'onEnd' | 'follow' | 'onEnter' | 'onLeave' | 'edge'>;

For duration seconds effects happen to what is at the spot, over and over, and onEnd at the end