Skip to main content

Champions and combat

A champion is a Champion Definition Data Asset and a character Blueprint. Its stats are gameplay attributes on its ability system, which lives on the player's player state, so a champion's level, cooldowns and ranks survive its death. This page covers the stats and how damage works, crowd control, the summoner spells, and levels, death and respawn.

The Champion Definition​

SectionFieldWhat it does
ChampionDisplay Name, PortraitWhat champion select, the HUD and the scoreboard show
Pawn ClassThe champion's Blueprint, a subclass of MobaChampion, with its mesh and gear
ResourceMana, or None for a champion that pays nothing for its abilities
StatsBase Stats, Per Level StatsThe stats at level 1, and what each level adds
Basic AttackAttack Range, Attack Windup, Attack Projectile Speed, Attack Projectile Class, Attack CuesThe basic attack; see Basic attacks
AnimationIdle, Move, Attack, Death and the restThe clips its mesh plays with no Anim Blueprint; see Effects and animation
AbilitiesAbilitiesThe Ability Definition on each slot: Passive, Q, W, E and R
ShopRecommended BuildThe build the shop's Recommended tab shows and bots buy; see Gold, items and shop

Make a champion starts one from a sample champion.

The stats​

AttributeWhere it startsWhat it does
Health, Max HealthBase Stats, Per Level StatsAt 0 health the champion dies
Mana, Max ManaBase Stats, Per Level StatsPays for abilities. A champion with Resource set to None has none
Attack DamageBase Stats, Per Level StatsThe damage of a basic attack, with Bonus Attack Damage added
Bonus Attack Damage, Ability Power0From items and buffs; abilities scale with them
Attack SpeedBase StatsBasic attacks per second before bonuses
Bonus Attack SpeedPer Level StatsAttacks per second are Attack Speed × (1 + Bonus Attack Speed), and never more than the cap
Attack RangeBasic AttackFrom the edge of the champion's body to the edge of its target's
Crit Chance, Crit Damage0, and 1.75 from the Combat settingsA basic attack crits with that chance for that multiple
Lifesteal, Omnivamp0Lifesteal heals by that share of basic attack damage dealt, omnivamp of all damage dealt
Armor, Magic ResistBase Stats, Per Level StatsReduce physical and magic damage. They can be negative
Tenacity0Shortens crowd control
Move SpeedBase StatsWalking speed in cm/s
Health Regen, Mana RegenBase Stats, Per Level StatsHealth and mana regained each second while the champion lives, in steps every 0.5 s. 0 by default: give every champion some
Shield0The sum of the champion's shields, for the health bar
Damage Reduction0The share taken off every hit, after resists: 0.3 is 30%. Sources add up, to at most 0.9

A stat at a level is Base + Per Level × (level − 1). A level-up adds the gain in Max Health and Max Mana to the current health and mana as well. Items, buffs and abilities change stats with Gameplay Effects.

Damage​

A hit goes through these steps, on the server only:

  1. Crit. A basic attack, and an ability with Can Crit on, crits with the attacker's Crit Chance and is multiplied by its Crit Damage.
  2. Resist. Physical damage is reduced by the target's Armor, magic damage by its Magic Resist, true damage by nothing. With a resist R of 0 or more, the damage is multiplied by 100 / (100 + R): 100 resist halves it. With a negative R, by 2 − 100 / (100 − R): the target takes more.
  3. The target's state. A vulnerability the attacker put on the target adds its share, the target's Damage Reduction takes its share off, and a guard takes its share off and is used up.
  4. Shields. What is left drains the target's shields, the one that ends soonest first.
  5. Health. The rest comes off the health.
  6. Lifesteal and omnivamp heal the attacker by their share of what the shields and the health took.

An execute skips steps 1 to 3 and takes all the target's shields and health. An ability's damage before these steps is its rank's Base Damage plus its rank's Scaling Ratio of the caster's Scaling Attribute.

Basic attacks​

Every champion has a basic attack without an Ability Definition. Its numbers are the stats above and the Basic Attack section of the Champion Definition:

FieldWhat it doesDefault
Attack RangeFrom body edge to body edge550 cm; a melee champion has about 175
Attack WindupThe share of the time between two attacks that passes before the attack lands0.25
Attack Projectile Speed0 lands the attack when the wind-up is over; above 0 a projectile flies to the target first2000 cm/s
Attack Projectile ClassWhat that projectile looks likenone: it cannot be seen
Attack CuesThe Gameplay Cues of the wind-up, the projectile's flight and the hitnone

The champion's orders start each attack. During the wind-up the champion stands still and faces its target; a stop order, a cast or a stun cancels the attack, and the next one is then ready at once. An attack that has landed starts the wait for the next one, whatever orders come in between.

Crowd control​

Crowd control is a set of Gameplay Effects. Each grants a state tag under State.CC, and everything else in the framework checks the tags, never the effect: movement, casting, the basic attack. An effect of your own that grants one of the tags is crowd control in every respect.

EffectTagThe champion cannotTenacity shortens it
MobaStunEffectState.CC.Stunmove, attack or castyes
MobaRootEffectState.CC.Rootmove or dash; it attacks, casts and blinksyes
MobaSlowEffectState.CC.Slowwalk at full speed: move speed is lowered by a shareyes
MobaSilenceEffectState.CC.Silencecast; it moves and attacksyes
MobaKnockUpEffectState.CC.KnockUpmove, attack or cast; its body is lifted 120 cmno
MobaTauntEffectState.CC.Tauntdo anything but attack the unit that taunted ityes
MobaUnstoppableEffectState.Unstoppablebe affected by any of the above

Add crowd control to an ability by listing the effect in its Ability Definition's Effects, with a duration per rank and, for a slow, the share it takes as the magnitude.

  • Tenacity shortens stuns, roots, slows, silences and taunts: a 1 s stun lasts 0.7 s on a champion with 30% tenacity. The length is fixed when the effect lands. Tenacity from several sources stacks as 1 − (1 − a)(1 − b): 30% and 20% make 44%.
  • A knock-up ignores tenacity. Only the mesh is lifted; the collision stays on the ground, so the champion can still be hit.
  • Only the strongest slow applies: a 30% slow and a 20% slow together take 30%. Buffs to move speed all count.
  • Stun, silence and knock-up interrupt cast times, charges and channels. A root interrupts only dashes.
  • Unstoppable blocks every crowd control effect while it lasts and ends the ones that were running. Damage still lands.
  • A taunt turns the champion's order into an attack on whoever taunted it and ignores every other order until it ends; then the champion stops. The one cast it allows is an ability that makes the caster unstoppable, which ends the taunt at once.
  • Several effects at once all run; the champion acts again when the last one that holds it has ended. Crowd control ends when its target dies.

The server applies every effect. The tags replicate, and the affected player's own game stops moving and casting when the tag arrives. In the moment before, it may predict a cast or a step; the server refuses the one and corrects the other, by a few centimeters.

WhatWhereDefault
Duration, and the share a slow takesThe ability's Effects entry, per rank
Knock Up Height, Knock Up Rise TimeProject Settings > Pioneer MOBA Framework > Combat120 cm, 0.15 s
Which tags hold a champion in placeMovement Blocked Tags on the champion's movement componentcast time, channel, attack wind-up, stun, root, knock-up, dead
Which tags interrupt a castInterrupted By Tags on the ability classstun, silence, knock-up; a dash adds root

Summoner spells​

Every champion has two spell slots beside its own abilities, on D and F. A summoner spell is an ordinary Ability Definition on the same cast types, so a new spell needs data and no code. A spell has one rank and takes no ability points. Players pick two in champion select and cannot take the same spell twice.

SpellAssetWhat it doesCooldown
Leap/PioneerMOBA/Spells/DA_Spell_LeapA blink of up to 400 cm toward the cursor, with no cast time. Toward a wall it lands on the last walkable point300 s
Mend/PioneerMOBA/Spells/DA_Spell_MendHeals the caster and the nearest ally within 800 cm for 90 + 15 per level of the caster240 s
Teleport/PioneerMOBA/Spells/DA_Spell_TeleportCast on an allied minion, tower or ward anywhere on the map, in the world or on the minimap: a 4 s channel, then the caster stands beside it300 s; 60 s when it ends early
Jungle Strike/PioneerMOBA/Jungle/DA_Spell_JungleStrike450 true damage to a monster or an enemy minion within 500 cm, plus 30 for each champion level above 175 s

None costs mana. A move, attack or cast order, crowd control, or the target dying or changing ends a Teleport; damage alone does not. Everyone who sees Teleport's target sees a marker on it for the whole channel, enemies too. Bots never cast Teleport. Jungle Strike never targets champions or structures, and its kill counts as the caster's last hit.

To make a spell:

  1. Make an Ability Definition as for any ability. Set Slot to D (the slot a player puts it on decides the key), Max Rank to 1, and one value in each rank array.
  2. Add it to Project Settings > Pioneer MOBA Framework > Match Flow > Spell Pool, and champion select offers it.
SettingWhereWhat it doesDefault
Spell PoolMatch FlowThe spells champion select offers for D and FJungle Strike, Leap, Mend, Teleport
Bot Spell D, Bot Spell FMatch FlowWhat a bot that fills a seat takesLeap, Mend
Default Spell On D, Default Spell On FThe game mode (MobaGameMode), or [/Script/PioneerMobaCore.MobaGameMode] in DefaultGame.iniWhat a player gets who comes into a match without a lobby, and every bot added with Add BotLeap, Mend

From code, AMobaPlayerState::SetSummonerSpells(SpellOnD, SpellOnF) puts two spells on a player's keys, on the server; GetSummonerSpell(Slot) reads them on every machine.

Levels and XP​

A champion starts at level 1 and reaches level 18 at most. When a unit dies, its XP is split among the living champions of the other side within the XP Share Radius. Nobody needs the last hit.

  • Shared XP grows before it is split: with N champions sharing, each gets XP × (1 + 0.3 × (N − 1)) / N. Two champions get 65% each.
  • A champion's death is worth 140 XP and 40 more for each of its levels above 1.
  • A level-up raises the stats by the Per Level Stats and gives one ability point. XP past level 18 is discarded.
  • A dead champion gets no share.

Death and respawn​

At 0 health a champion dies. When the death timer has run out, it gets a new body at a free player start of its team, with full health and mana.

  • The death timer comes from the champion's level: 6 s at level 1, rising evenly to 40 s at level 18. From minute 15 of the match it grows by 2% a minute, up to 50% more. It is fixed at the moment of death, and every machine shows the same countdown.
  • Crowd control, the unstoppable state and shields end at death, and so does any effect of yours that grants the tag Effect.RemovedOnDeath. Cooldowns run on, and so do other buffs.
  • A dead champion has the tag State.Dead: it casts nothing, takes no orders and is no target.
  • The body stays where it fell for 5 s, then sinks into the ground over 1 s. Nothing can hit, target or bump into it. It plays the champion's Death clip or, without one, goes limp on its mesh's physics asset, thrown away from the killing hit. The Champion Death Cue plays where it falls.

Where the numbers are​

Project Settings > Pioneer MOBA Framework > Combat:

SettingDefault
Attack Speed Cap2.5 attacks per second
Crit Damage1.75
Server Range Leeway50 cm
Knock Up Height, Knock Up Rise Time120 cm, 0.15 s

Project Settings > Pioneer MOBA Framework > Match:

SettingDefault
Max Level18
XP To Next Level (a curve over the level)280 at level 1, 100 more for each level: 18,360 in all
XP Share Radius1600 cm
XP Share Bonus Per Extra Champion0.3
Champion Kill XP, Champion Kill XP Per Level140, 40
Basic Ability Rank Levels, Ultimate Rank Levels1, 3, 5, 7, 9 and 6, 11, 16
Death Time By Level (a curve over the level)6 s at level 1 to 40 s at level 18
Late Game Start, Late Game Growth Per Minute, Late Game Max Bonus900 s, 0.02, 0.5
Corpse Time, Corpse Sink Time, Corpse Impulse5 s, 1 s, 350 cm/s
Champion Death Cuethe sample's GameplayCue.Sample.Champion.Death; empty plays none

The console variable Moba.Regen scales health and mana regeneration on the server; 0 stops it.

From code and Blueprint​

UMobaCombatLibrary (Blueprint category MOBA > Combat) hits, heals and applies timed effects outside an ability, for items, map hazards and your own logic. It runs on the server only:

  • ApplyDamage(Source, Target, Damage, DamageType, bBasicAttack, bCanCrit) goes through the same steps as every hit.
  • ApplyHeal(Source, Target, Heal).
  • ApplyTimedEffect(Source, Target, EffectClass, Duration, Magnitude) applies one of the framework's effects or your own; it returns nothing valid when crowd control meets an unstoppable target.

AMobaPlayerState holds the rest: GetChampionLevel(), GetXP(), GetLevelProgress(), AddXP(Amount), SetChampionLevel(Level), IsDead(), GetRespawnTimeRemaining(), Kill(Killer), Respawn(), and the delegates OnLevelChanged, OnDied (server) and OnDeadChanged (everywhere). AMobaGameMode::ShareXP(Location, DyingTeam, XP) hands out the XP of anything that dies. On the champion, the Blueprint event On Death runs wherever the body dies.