Units

Units can have Unit Sub-Components.

For Units there is currently only one Base Class, the UnitBase

Notable Unit Stats:

Attack Range:

The attack range of a unit is the range of its weapon.

Unbuffed and Max (Buffed) Vitals

Modifiers to Vitals are found on Behaviors (Attributes and Buffs).

  • Flat modifiers (e.g. plus 10 Life) are found under Behavior→Modifications→Stats→Maximum

  • Percentage modifiers (e.g. plus 10 percent Life) are found under Behavior→Modifications→Vital Max Bonus Fraction.

When using Attributes, percentage modifiers are ignored, as this would quickly escalate to high numbers considering that Attributes have levels.

Unbuffed Vitals

The Unbuffed Vitals are calculated like this: Unit’s Vitals plus Vitals from Attributes.

Buffed Vitals

Buffed Vitals are Unbuffed Vitals plus Vital Modifiers from Buffs.

Note that Buffs can also be applied to a Unit when it equips an Item (see Item → Equip Behavior).

Unit Flags:

Unit State Flags:

Unit State Flags have hard-coded influence on gameplay.

  • Unstoppable

    • Cannot be stunned or rooted. Movement speed cannot be reduced.

  • Unkillable

    • Will not die, even if health falls to 0.

  • Invulnerable

    • Cannot take damage. Loosing Health through a negative life-regeneration or an EffectModifyUnit is still possible.

  • Stunned

    • Cannot move, cast or autoattack

  • Rooted

    • Cannot move

  • Silenced

    • Cannot cast

  • Untargetable

    • Cannot be the target of a targeted cast or autoattack. However, it can still be found by a SearchArea Effect or hit by a Projectile.

  • Unselectable

    • Cannot be selected by the user. TODO: Units that are currently selected and become unselectable.

Unit Attribute Flags:

Unlike State Flags, the influence of Unit Attribute Flags on gameplay are not at all hard-coded. It should even be possible (although this is neither tested nor supported) that users add their own flag(s) to the UnitAttributeFlag enumeration. Usages of Attribute Flags are: