# Damage

17,023pages on
this wiki

Damage is any loss of HP inflicted by the use of a weapon or a spell on characters or monsters.

## Types of DamageEdit

Damage has one of five element types: neutral (linked to strength), earth (also linked to strength), water (linked to chance), fire (linked to intelligence) or air (linked to agility). Each elemental damage is increased by corresponding characteristics.

Earth and neutral elemental damages are called Physical damage. Fire, water and air elemental damages are called Magical damage.

Indirect damage is damage from effects on a character such as poison.

Direct damage is all other kinds, including glyphs.

Static damage (or hp loss) is damage that cannot be modified in any way.

Area of effect (AoE) damage is damage that affects more than one square of the battlefield and therefore has the potential of damaging more than one enemy. When targeting an AoE weapon or spell, the orange squares on the grid refer to the area that will be affected. If an ally is on one of these orange squares, the ally will usually suffer damage too. All Hammers, Staffs and Shovels inflict AoE damage; there are also spells that inflict AoE damage (e.g Explosive Arrow, Crackler Punch).

### Erosion (Permanent Damage)Edit

10% of all damage which a player takes during a fight becomes permanent, for that fight. This means that a character's max HP can be significantly reduced over a prolonged fight. It should be noted, though, that this damage is only for that fight so it will disappear once the fight is over. There are also spells that increase the permanent damage taken by a target, like Sacrier's punishments, Sram's Mistake, Iop's Pressure, Ecaflip's Reflex, and some Eniripsa's spells. Increased erosion is capped at 50%.

### Pushback DamageEdit

When a character or monster hits an obstacle before it could be pushed back the entire distance it should have been, it is dealt pushback damage.

This damage can be modified by

The character's level.
Pushback damage equipment

The equation to calculate pushback damage: $([Attacker level]/2 + [Attacker's pushback damages - target's pushback damage resistance] + 32) * [Push range left]/(4*(2^[Number of intermediary targets]))$

If a target is pushed onto another target, pushback damages dealt to the second target are recalculated, taking into account its pushback damage resistance and the pushback damage of the original attacker, but by keeping the same number of pushed cells as the first target. The whole of it is then divided by 2.

The impact of the pushback damage bonus and the pushback damage resistance bonus (granted by some spells or equipment) is now dependent upon the number of cells pushed.

If the character was pushed one cell, 25% of the pushback damage (and pushback damage resistance) bonus is taken into account.
If the character was pushed two cells, 50% of the pushback damage (and pushback damage resistance) bonus is taken into account.
If the character was pushed three cells, 75% of the pushback damage (and pushback damage resistance) bonus is taken into account.
If the character was pushed four cells, 100% of the pushback damage (and pushback damage resistance) bonus is taken into account.
If the character was pushed five cells, 125% of the damage bonus is taken into account and so forth.

## Damage ModifiersEdit

The base damage of a weapon or a spell is modified by various sources. The increase (or decrease) may be either in percentage or fixed amount. Percentage addition to damage is called percent damage. Fixed addition to damage is called plus damage.

### OffensiveEdit

• Characteristics: A percentage addition to the damage of linked elements by 1% per point.
• Spells and equipment that give Power.
• Spells and equipment that give Plus damage
• Spells and equipment that give Heals: A linear addition to healing only.
• Weapon Skill: This spell increases the base damage of weapon attacks.
• Critical Hit: In the case of weapons, Critical hit bonus is added to the base damage range upon critical hits. For example, Captain Chafer's Small Daggers has +10 critical hit bonus, which will boost the regular damage range 15-22 to 25-32. In the case of attack spells, the damage range of critical hit applies instead of the regular damage range. For example, the damage range of Pressure level 1 boosts from 5-9 to 7-11 upon critical hit. Critical hit damage can be reduced by Critical Resistance.

### DefensiveEdit

• Shield (effect): A linear reduction of direct damage. Shield effects may be limited to certain elements only. Shield effects are modified by the defender's level. Masqueraiders also have a unique type of shield based on vitality, not the level of the caster. See Shield (Masqueraider) for more information.
• Reflect: Another type of linear reduction where damage is dealt back to the attacker. Reflected damage cannot exceed the original attack's damage, and is affected by resistance. Reflect effects are modified by the defender's wisdom. Some equipment gives a Damage Reflect bonus, but it does not reduce the damage taken. Moreover, reflect bonus on equipment is not affected by the Wisdom and is no longer subtracted from the final damage. Formula: $Damage Reflected = Spell Reflect Damage * [1+(Wisdom / 100)) + Gear Reflect Damage$Reflected damage is limited to half the damage inflicted by the spell: if you get hit by a 10 damage spell, even if you had 50 reflect bonus on, it'd only reflect 5, resulting on 10 damage on you and 5 on attacker, effectively being a 50% damage reflect maximum.
• Resistance: A percentage reduction of direct and indirect damage. Resistance effects are limited to a single element each, and the total resistance in an element for player characters can never effectively exceed 50% for damage calculation, even with enough resistance to do so. Monsters' resistance is effectively capped at 100% -- although on some it displays more -- rather than 50%.
• Reduction: A linear reduction of direct and indirect damage. Reduction effects are limited to either physical, magical damage, or one particular element. The reduction is not limited to 50 like it's partner, Resistance. It's current limit is unknown.

## CalculationEdit

First, the bonus from a Weapon Skill is added to the class modifier, and the base damage is increased by the sum of these two bonuses, and rounded down. Then this value is increased by the sum of the Percent Damage and applicable Characteristic increases on the character, and rounded down. Then the total Plus damage effects are added, and the result is your damage output. Once the damage output is found, the target's total applicable Reduction and Shield effects are subtracted from the damage output. Finally, the damage output is modified by the target's Resistance in the corresponding element, and rounded down.

• Note: the "Math.floor()" function below, rounds the final value inside the function down before storing it.
```Res = Base
Res = Math.floor( Res * (1 + ((Skil - Modi) / 100)) )
Res = Math.floor( Res * (1 + ((Stat + PDmg) / 100)) )
Res = Res + LDmg
Res = Res - (LRes)
Res = Math.floor( Res * (1 - (PRes / 100)) )

Base : Random value from base damage range.
Skil : Applicable Weapon Skill bonus (Weapon attack only).
Stat : Total value of relevant characteristic. Minimum 0.
PDmg : All bonuses of type Percent Damage.
LDmg : All bonuses of type Plus damage.
LRes : Total value of relevant Shield (effect), Reflect, Reduction bonuses on the target.
PRes : Total value of relevant Resistance bonuses on the target.
```

When calculating damage for a critical hit, for spells, use the base damage range of a critical hit.

For weapons, add the value labeled "Critical Hit Bonus: +X" listed on the weapon to the base damage, before any other modifications (such as Weapon Skill) take place. Using the method above, "Base" would be simply a random value from the base damage range plus the Critical Hit Bonus. See Critical hit for more details.

### Advanced Damage FormulasEdit

These formulas are designed to help you get stats and Set to best support a given Spell/Weapon in order to deal the most damage possible. These two formulas are briefly outlined here, for a more detailed explanation see the guide. The following is used with permission:

• Average Base Damage (ABD)

This is the first of the two calculations, and represents the average damage that will be dealt with a given Spell or Weapon with no stat boosts from a Set, Characteristics, or Spells. For this calculation as defined here, Critical Hits do have an effect on the result. The only factors that change ABD come from the Weapon Skill, this is the only factor that change the Base Damage of an attack directly, before any stats take affect.

Here are definitions of the values used in the calculations:

```ABD = Average Base Damage
NC_MIN = Minimum Base Damage of the selected Spell on a Non-Crit
NC_MAX = Maximum Base Damage of the selected Spell on a Non-Crit
CR_MIN = Minimum Base Damage of the selected Spell on a Critical Hit
CR_MAX = Maximum Base Damage of the selected Spell on a Critical Hit
MIN = Minimum Base Damage of the selected Weapon (on a Non-Crit)
MAX = Maximum Base Damage of the selected Weapon (on a Non-Crit)
CRIT_B = The Critical Hit Bonus of the selected Weapon, which denotes
how much more damage the weapon will do on a Critical Hit
CRIT_VAL = The bottom part of the fraction that represents
your current Chance of getting a Critical Hit
Example: (you have a 1/CRIT_VAL chance of getting a Critical Hit)
SKILL_VAL = The amount of Damage Increase granted by the Weapon Skill active
Example: (your current active Weapon Skill increases your damage by SKILL_VAL%)
```

Calculation of the Average Base Damage of a Spell:

```ABD = ([(NC_MIN + NC_MAX) / 2]*[CRIT_VAL - 1] + [(CR_MIN + CR_MAX) / 2]) / CRIT_VAL
```

Calculation of the Average Base Damage of a Weapon:

```ABD = [([(MIN + MAX) / 2]*[CRIT_VAL - 1] + [([MIN + MAX] / 2)+CRIT_B]) / CRIT_VAL] * [100+SKILL_VAL]/100
```
• Damage Value Equivalent (DVE)

This second of the Advanced Damage Formulas allows you to find the connection between Plus damage and Percent Damage when using the selected Spell or Weapon. It expands upon the ABD calculation explained above to find the total amount of Percent Damage needed to deal one more point of damage with that Spell/Weapon. In essence, each Plus damage boost you receive will increase your damage with the selected Spell/Weapon by the same amount as a Percent Damage boost equal to the DVE.

Calculation of the Damage Value Equivalent of a Spell or Weapon:

```DVE = 100 / ABD
```