Skip to content

Innates ​

An innate is an ability a hero has from level 1, for no point, that grows with it: HeroDef.innate. Most often a passive (an aura, a trigger, a buff kept on the hero); sometimes one it casts. An innate should change how the hero is played, not only its numbers: Oathbreaker plays where his allies are, Gale Hunter chooses between planting and moving.

Quick start ​

ts
// the hero
hero: { innate: 'bulwark', learns: ['oathCharge', 'shieldwall', 'ironResolve', 'lastStand'], ... }

// the innate: a passive ability
{
	id: 'bulwark',
	name: 'Bulwark',
	description: 'Takes a fifth of the damage allied heroes near him take, before their armor',
	target: 'passive',
	maxLevel: 1,
	effects: [{ type: 'aura', buff: 'bulwarkWard', radius: 8, only: 'heroes' }]
}

The aura keeps a ward buff on allied heroes near; a beforeDamage hook of the game reads the ward and moves a fifth of the damage to the Oathbreaker (the melee starter's hooks).

Common tasks ​

Let it grow with the hero ​

The innate's level is the hero's, up to the ability's own maxLevel: an innate with maxLevel: 3 and amounts [10, 20, 30] is at 3 from hero level 3. innateLevels: [1, 6, 11, 16] has it go up at those hero levels instead (level 2 from the hero's sixth), as League's passives do. innateLevel(world, hero) reads it.

Make a passive that changes play ​

Innate (melee starter)Built fromHow it changes the play
Bulwarkan aura ward, a beforeDamage hookHe plays where his allies are
Mercy's Echoa buff with overheal into a shieldHeals go out before a fight, not only after
Static Chargea buff of maxStacks 3 counted by onCast; a charged effect that costs nothing and chainsThe order of spells matters
Steady Aima buff whose onTick adds stacks while still and takes them off on movingPlant to shoot, or keep moving
Blood Tithea buff with paysWithHealth, and omnivampNo mana: aggression is the sustain, and the risk
Shattera sense buff; a beforeDamage hook that ends her holds for more damageHer team follows her holds up
Shadow StepoutOfFights into camouflage; onHit from it crits and silencesAngles and waiting, not standing in the open
HarvestonKill stacks on a component kept through deaths; a meterFarm early, then avoid dying

Every piece is a buff field or a trigger (Buffs and debuffs: every field, Triggers and passives). Where a field does not say it, a hook (beforeDamage, beforeHeal) or an effect of your own does (Change a rule with a hook).

Pay for abilities with health ​

A buff with paysWithHealth: true (or a number: health for each point of mana) on the hero: its abilities cost health, not mana, and it cannot cast with no more health than that. Items still cost nothing. Gravelord's Blood Tithe.

Turn healing past full into a shield ​

A buff with overheal: { buff: 'echoShield', part: [0.4, 0.6, 0.8, 1], most: 0.25 } on the healer (of: 'given', the default) or the healed (of: 'taken'): what spilled over becomes the shield buff named, up to a share of the healed one's max health. Dawn Priest's Mercy's Echo.

Keep it fit for every kind of game ​

An innate names heroes, creeps, buildings, allies and kills, never a lane or a tower. Bone Reaver's Harvest counts any kill, a hero's as five; Duskblade's Shadow Step counts seconds out of fights, wherever. So the eight play in a melee game, a campaign and a lanes map alike (Items: fit for every kind of game).

Show it ​

The innate is on the hero panel before the learned abilities, with its level, and its tooltip is the ability's description. A meter buff on the hero (hero.meter: 'harvest') shows its stacks by the health and mana bars.

Reference ​

FieldWhat it does
innateThe ability, by id
innateLevelsThe hero levels it goes up at, from its first; the hero's own level when left out
meterA buff whose stacks are shown by the bars

innateLevel(world, hero, heroLevel?) is the innate's level now; keepInnate(world, hero) puts it back at its level (the engine calls it as the hero levels up or changes form).

Tests: packages/engine/tests/heroes.test.ts (the innate's level), packages/engine/tests/overhealAndBloodCost.test.ts, apps/example/tests/heroes.test.ts.