Spirit

Spirit is a measure of how strong a character's Abilities are.

Offensive Abilities
For damaging abilities, the damage is calculated using a formula that is linear in the difference in Spirit between the unit casting the ability, and the unit taking the ability:

D = B + A($$S_C - S_D $$)

Where D is the damage inflicted, B is the ability's base damage, A is the ability's spirit scaling, $$S_C$$ is the spirit of the casting unit, and $$S_D$$ is the spirit of the defending unit. B and A are values determined by the ability used. If D is calculated to be zero or negative, the ability will inflict 1 damage instead.

For abilities that produce status effects, the power of the ability is unchanged by Spirit, however, the probability to inflict the status effect can be calculated by

P = $$P_a (\frac{S_C}{S_D})^2$$

Where P is the total probability to inflict the effect, $$P_a$$ is the base ability probability, and as above, $$S_C$$ and $$S_D$$ are the spirits of the casting and defending units, respectively. In the case that P is greater than or equal to 1, this counts as a 100% chance to inflict the effect.

Defensive Abilities
For healing abilities, the healing is calculated using a formula that is linear only in the Spirit of the casting unit, unlike damaging abilities, which also depends on the Spirit of the unit receiving the ability.

H = B + A$$S_C$$

Where H is the total healing given, B Is the ability's base healing, A is the ability's spirit scaling, and $$S_C$$ is the spirit of the casting unit.

For abilities that give status effects to allies, the probability is unaffected by either unit's spirit, and is simply equal to $$ P_a $$, the ability's base probability. Although rare for most of these abilities, they can still fail!