Vagrant: shoots an ethereal projectile at any nearby enemy that deals physical and magical damage, medium range Scout: throws a knife at any nearby enemy that deals physical damage and chains, small range Cleric: heals every unit when any one drops below 50% HP Swordsman: deals physical damage in an area around the unit, small range Archer: shoots an arrow at any nearby enemy in front of the unit, long range Wizard: shoots a projectile at any nearby enemy and deals AoE magical damage on contact, small range Ranger: yellow, buff attack speed Warrior: orange, buff attack damage Healer: green, buff healing effectiveness Mage: blue, debuff enemy magic resistance Cycler: purple, buff cycle speed HP Damage Attack speed -> stacks additively, capped at minimum 0.125s or +300% Cycle speed -> stacks additively, capped at minimum 0.5s or +300% Armor -> if armor >= 0 then dmg_m = 100/(100+armor) else dmg_m = 2-100/(100-armor) Magic resistance -> if mr >= 0 then dmg_m = 100/(100+mr) else dmg_m = 2-100/(100-mr)