# Combat Calculations

Combat Calculations are used to determine the damage effects of Statuses and Skills while fighting.

## Contents

## Skill Use[edit | edit source]

Spell Skills, Melee Attack Skills, and Throwing Attack Skills are affected by Cast Speed, Melee Attack Speed, and Throwing Attack Speed respectively which increase the rate at which these abilities can be used, both by reducing the duration of their animations and by reducing the time between successive uses.

Targeted skills from Non-Player Characters affected by Blind have a chance to fire in a random direction away from their target.

## Damage conversion[edit | edit source]

Damage conversion only applies to base damage. For example you have the following attributes

- 100% increased physical damage (passive tree)
- 50% increased fire damage (passive tree)
- +10 base physical damage (skill modifier)
- All damage is converted to fire damage (skill modifier)

A simplified calculation for a skill that does 40 physical damage would be:

fire damage

## Combat Order[edit | edit source]

### Hits[edit | edit source]

Hits can only be made by skills, Damage Over Time cannot be a hit. Once a hostile skill Area of Effect lands in a Characters hit box the game goes through the following calculations in order to determine if and how much damage a character receives:

- Dodge chance is rolled to determine if the hit lands. If the hit is dodged no further calculations are made. If the dodge is unsuccessful, the rest of the calculations occur. Any "On Hit" effects are triggered.
- #Offensive Calculations are used to determine the types and amount of damage dealt.
- #Defensive Calculations are used to determine how much damage is mitigated, and thus the damage left over is taken.
- #Damage Taken Calculations will deal damage to characters and determines if they are killed, resulting in 'on kill' and 'on death' effects.

### Damage From Other Sources[edit | edit source]

Damage can be given from sources other than a hit, usually from Statuses or Damage over Time Skills.

- #Offensive Calculations are used excluding Critical Strike Chance
- #Defensive Calculations are used excluding Block Chance, Chance to Recieve a Glancing Blow
- #Damage Taken Calculations used the same as for hits

## Offensive Calculations[edit | edit source]

On a hit, the Critical Strike Chance or Melee Critical Strike Chance is rolled to determine if the hit is critical or not. If the hit is critical it increases the base damage by the Critical Strike Multiplier.

All damage is scaled randomly between -25% and +25%.

Damage dealt from a hit, Damage Over Time effect, or other direct damage source is calculated separately for each of the Damage Types which are modified by any applicable Skill Type Modifiers.

Modifiers which add to a Damage Type add directly to the Base Damage before being affected by other modifiers

Modifiers which Increase or Reduce a damage type are additive. Each modifier is added to together and the final amount is multiplied by the base damage.

Modifiers which give more or less of a Damage Type are multiplicative. Each modifier is multiplied separately alongside the base damage.

All together the modifiers result in the following calculation for each damage type:

## Defensive Calculations[edit | edit source]

Once damage is received Block Chance is rolled to determine if Block Armor and Block Protection are added to the base Protections. On a successful block roll "On Block" effects are triggered.

For each type of damage received it is mitigated by the Protections for each damage type.

For unblocked damage:

For blocked non-physical damage:

For blocked physical damage:

Additionally Chance to Receive a Glancing Blow reduces damage taken by 50% on a successful roll.

Reduced Damage Taken will further scale damage multiplicatively with each source.

## Damage Taken Calculations[edit | edit source]

Once damage is taken the amount is subtracted from

- The characters Ward
- Percent dealt to mana equal to the Damage Dealt to Mana Before Health modifier
- The characters Health

If the characters health drops to 0 or lower they are killed.