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
| Section | Field | What it does |
|---|---|---|
| Champion | Display Name, Portrait | What champion select, the HUD and the scoreboard show |
| Pawn Class | The champion's Blueprint, a subclass of MobaChampion, with its mesh and gear | |
| Resource | Mana, or None for a champion that pays nothing for its abilities | |
| Stats | Base Stats, Per Level Stats | The stats at level 1, and what each level adds |
| Basic Attack | Attack Range, Attack Windup, Attack Projectile Speed, Attack Projectile Class, Attack Cues | The basic attack; see Basic attacks |
| Animation | Idle, Move, Attack, Death and the rest | The clips its mesh plays with no Anim Blueprint; see Effects and animation |
| Abilities | Abilities | The Ability Definition on each slot: Passive, Q, W, E and R |
| Shop | Recommended Build | The 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
| Attribute | Where it starts | What it does |
|---|---|---|
| Health, Max Health | Base Stats, Per Level Stats | At 0 health the champion dies |
| Mana, Max Mana | Base Stats, Per Level Stats | Pays for abilities. A champion with Resource set to None has none |
| Attack Damage | Base Stats, Per Level Stats | The damage of a basic attack, with Bonus Attack Damage added |
| Bonus Attack Damage, Ability Power | 0 | From items and buffs; abilities scale with them |
| Attack Speed | Base Stats | Basic attacks per second before bonuses |
| Bonus Attack Speed | Per Level Stats | Attacks per second are Attack Speed × (1 + Bonus Attack Speed), and never more than the cap |
| Attack Range | Basic Attack | From the edge of the champion's body to the edge of its target's |
| Crit Chance, Crit Damage | 0, and 1.75 from the Combat settings | A basic attack crits with that chance for that multiple |
| Lifesteal, Omnivamp | 0 | Lifesteal heals by that share of basic attack damage dealt, omnivamp of all damage dealt |
| Armor, Magic Resist | Base Stats, Per Level Stats | Reduce physical and magic damage. They can be negative |
| Tenacity | 0 | Shortens crowd control |
| Move Speed | Base Stats | Walking speed in cm/s |
| Health Regen, Mana Regen | Base Stats, Per Level Stats | Health and mana regained each second while the champion lives, in steps every 0.5 s. 0 by default: give every champion some |
| Shield | 0 | The sum of the champion's shields, for the health bar |
| Damage Reduction | 0 | The 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:
- 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.
- 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.
- 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.
- Shields. What is left drains the target's shields, the one that ends soonest first.
- Health. The rest comes off the health.
- 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:
| Field | What it does | Default |
|---|---|---|
| Attack Range | From body edge to body edge | 550 cm; a melee champion has about 175 |
| Attack Windup | The share of the time between two attacks that passes before the attack lands | 0.25 |
| Attack Projectile Speed | 0 lands the attack when the wind-up is over; above 0 a projectile flies to the target first | 2000 cm/s |
| Attack Projectile Class | What that projectile looks like | none: it cannot be seen |
| Attack Cues | The Gameplay Cues of the wind-up, the projectile's flight and the hit | none |
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.
| Effect | Tag | The champion cannot | Tenacity shortens it |
|---|---|---|---|
MobaStunEffect | State.CC.Stun | move, attack or cast | yes |
MobaRootEffect | State.CC.Root | move or dash; it attacks, casts and blinks | yes |
MobaSlowEffect | State.CC.Slow | walk at full speed: move speed is lowered by a share | yes |
MobaSilenceEffect | State.CC.Silence | cast; it moves and attacks | yes |
MobaKnockUpEffect | State.CC.KnockUp | move, attack or cast; its body is lifted 120 cm | no |
MobaTauntEffect | State.CC.Taunt | do anything but attack the unit that taunted it | yes |
MobaUnstoppableEffect | State.Unstoppable | be 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.
| What | Where | Default |
|---|---|---|
| Duration, and the share a slow takes | The ability's Effects entry, per rank | |
| Knock Up Height, Knock Up Rise Time | Project Settings > Pioneer MOBA Framework > Combat | 120 cm, 0.15 s |
| Which tags hold a champion in place | Movement Blocked Tags on the champion's movement component | cast time, channel, attack wind-up, stun, root, knock-up, dead |
| Which tags interrupt a cast | Interrupted By Tags on the ability class | stun, 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.
| Spell | Asset | What it does | Cooldown |
|---|---|---|---|
| Leap | /PioneerMOBA/Spells/DA_Spell_Leap | A blink of up to 400 cm toward the cursor, with no cast time. Toward a wall it lands on the last walkable point | 300 s |
| Mend | /PioneerMOBA/Spells/DA_Spell_Mend | Heals the caster and the nearest ally within 800 cm for 90 + 15 per level of the caster | 240 s |
| Teleport | /PioneerMOBA/Spells/DA_Spell_Teleport | Cast 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 it | 300 s; 60 s when it ends early |
| Jungle Strike | /PioneerMOBA/Jungle/DA_Spell_JungleStrike | 450 true damage to a monster or an enemy minion within 500 cm, plus 30 for each champion level above 1 | 75 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:
- 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.
- Add it to Project Settings > Pioneer MOBA Framework > Match Flow > Spell Pool, and champion select offers it.
| Setting | Where | What it does | Default |
|---|---|---|---|
| Spell Pool | Match Flow | The spells champion select offers for D and F | Jungle Strike, Leap, Mend, Teleport |
| Bot Spell D, Bot Spell F | Match Flow | What a bot that fills a seat takes | Leap, Mend |
| Default Spell On D, Default Spell On F | The game mode (MobaGameMode), or [/Script/PioneerMobaCore.MobaGameMode] in DefaultGame.ini | What a player gets who comes into a match without a lobby, and every bot added with Add Bot | Leap, 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:
| Setting | Default |
|---|---|
| Attack Speed Cap | 2.5 attacks per second |
| Crit Damage | 1.75 |
| Server Range Leeway | 50 cm |
| Knock Up Height, Knock Up Rise Time | 120 cm, 0.15 s |
Project Settings > Pioneer MOBA Framework > Match:
| Setting | Default |
|---|---|
| Max Level | 18 |
| XP To Next Level (a curve over the level) | 280 at level 1, 100 more for each level: 18,360 in all |
| XP Share Radius | 1600 cm |
| XP Share Bonus Per Extra Champion | 0.3 |
| Champion Kill XP, Champion Kill XP Per Level | 140, 40 |
| Basic Ability Rank Levels, Ultimate Rank Levels | 1, 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 Bonus | 900 s, 0.02, 0.5 |
| Corpse Time, Corpse Sink Time, Corpse Impulse | 5 s, 1 s, 350 cm/s |
| Champion Death Cue | the 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.