Battle Arena Damage Guide

Much of this copied from Uroogla's Damage guide on the ATG Forums HERE!
NOTE: Some of this may be outdated, Somebody else will go over it in detail later.
== Damage Dealt ==
= Max Damage =
In general, the Max Damage that displays in the stat screen will be equal to the following.
maxDamage = floor(0.0003 * rank0.25 * level0.5 * attackPower * equipmentAttack *(ragePower/100) * (1 + offensiveElement / 100) + attackPower * (ragePower/100))
=== Worst Moon and Apocalypse Mode ===
In Worst Moon, Max Damage is reduced as follows:
maxDamage = floor(oldMaxDamage0.95 / 2)
In Apocalypse Mode, there is a further reduction to Max Damage. This reduction is applied after the Worst Moon reduction is applied.
maxDamage = floor(oldMaxDamage * 0.9)
=== Area Exceptions ===
In certain areas, Max Damage is further reduced or computed in a different way. All of the following changes are applied after the damage reductions from Worst Moon and Apocalypse Mode.
==== Ropeless Room ====
In the Ropeless Room, your Max Damage will always be 500.
==== Dark Pyramid ====
In the Dark Pyramid, the following damage reduction occurs:
maxDamage = ceil(Rank/100 + Level/1000) + ceil((Old_Max_Damage^0.25)/2)+(Old_Max_Damage/200000))/50
==== The MEGABOSS’s Revenge ====
In The MEGABOSS’s Revenge, the following damage reduction occurs:
maxDamage = floor(oldMaxDamage0.8 * 10)
==== Year 9001 ====
In the 9001 areas (9001 Mystic Forest, Defend Mission, and Secret Lab), your Max Damage is your level.
To deal most damage, the Special Wand is required.
==== Spooky Crypt ====
In Spooky Crypt, the following damage reduction occurs:
maxDamage = floor(oldMaxDamage / 10)
=== Other Exceptions ===
While under the effect of weaken, the following change happens to Max Damage:
maxDamage = floor(oldMaxDamage * 0.4)
While fighting the Ascendant, the following change happens to Max Damage:
maxDamage = floor(oldMaxDamage * 0.4)
= Min Damage =
Min Damage is equal to mastery% of Max Damage, rounded up.
=== Exceptions ===
In the Ropeless Room and 9001, your Min Damage will equal your Max Damage.
= Actual Damage (Before Multipliers) =
When you, Robacon, or your Invisible Ally successfully hit the enemy (including poison damage and reflect damage), Min and Max Damage is then typically converted to Damage Dealt as follows:
damageDealt = ceil(baseDamage * skillPower / 100 – enemyDefense * (100 –ignoreDefense) / 100 * areaDamagePercent / 100 * botMultiplier)
=== skillPower ===
While most skills and Invisible Ally attacks list their skill power, the following are not stated in the game.
==== Poison Damage ====
Poison damage functions as an attack whose skill power is your poison power.
==== Reflect Damage ====
Reflect damage functions as an attack whose skill power is your (magic) reflect power.
==== Dark Ruler ====
* Heal: skillPower = 150 + floor(totalCareerLevel * 0.15)
* Quick Attack: skillPower = 19 + floor(totalCareerLevel * 0.019)
* Power Attack: skillPower = 190 + floor(totalCareerLevel * 0.19)
==== CHAOS AURA ====
When using the CHAOS AURA, the power of your normal attack depends on the percentage of the Power bar that’s filled:
skillPower = ceil(337 + chaosPower * 10)
The power of the Special attack is 100000. The attack acts as Roundhouse Kick, described below.
==== Robacon ====
The power of Robacon’s attack depends on his rank and his weapon’s Equipment Attack.
skillPower = 50 + robaconRank + robaconWeaponAttack/3
=== areaDamagePercent ===
In some areas, your damage is reduced by a fixed percent. This section will include a list of areas and this percent.
=== botMultiplier ===
For every consecutive frame (roughly 40 per second at normal speed) that you keep a Battle Arena button held down, a variable called arenaBot increases by 1. When arenaBot reaches 24000 (10 minutes), you get a warning. When it reaches 48000 (20 minutes), you die of exhaustion. Between those points, your damage steadily drops until you’re dealing 1% of your normal damage. This is the purpose of the botMultiplier variable, which is computed as follows:
botMultiplier = floor(2 – arenaBot/24000)
botMultiplier is then set to 1 if the result is above 1, and to 0.01 if the result is below 0.01.
=== Exceptions ===
==== Heal ====
Damage from Heal to zombies is as above, but enemy defense is ignored.
==== Invisible Ally – Ignore Defense ====
Damage from an Invisible Ally’s Ignore Defense attack ignores both enemy defense and the botMultiplier penalty.
==== Invisible Ally ====
All Invisible Ally attacks receive a damage multiplier based on the Ally’s level and the enemy’s level:
allyDamageMult = 1 + (allyLevel – enemyLevel) / 100
allyDamageMult cannot exceed 3 and cannot go below 0.5. Damage dealt is then affected as follows:
damageDealt = floor(oldDamageDealt  
* allyDamageMult)
==== Roundhouse Kick ====
Roundhouse Kick ignores enemy defense, as stated in the attack description.
==== Spooky Crypt ====
In the Spooky Crypt, after everything above has been calculated, Damage Dealt is reduced as follows:
damageDealt = ceil(oldDamageDealt0.8  
* 40)
==== Pickaxes ====
When equipped with a pickaxe, the following changes happen to Damage Dealt:
* Against crystals, damageDealt = 2000
* Against Pirate Gem in Pirate Ship Interior, damageDealt = 6
* Against any enemy in Mystic Path, damageDealt = 4
==== Special Wand ====
When the Special Wand is equipped in the 9001 areas, the following changes happen to Damage Dealt:
* Against DON’T ATTACK, damageDealt = 1
* Against everything else, damageDealt = ceil((level / 10 + rank + 100) * skillPower / 50). Damage Dealt is reduced by 60% if you are weakened.
==== CHAOS ====
When CHAOS is in his Blue Aura, damageDealt = 1.
= Multipliers to Damage Dealt =
=== Mana Power / Spirit Power / Fury ===
==== Mana Power ====
When Mana Power is active, any attack will consume Mana Points equal to the following:
manaToConsume = ceil((currentMana – 2000) / 100)
This number cannot go below 0. Damage Dealt is then affected as follows:
damageDealt = ceil(oldDamageDealt  
* (1 + manaToConsume / 50000))
In the Pickaxe, Special Wand, and CHAOS cases above, mana is still consumed, but you gain no benefits to damage.
==== Spirit Power ====
When you have a spirit weapon equipped, Mana Power behaves differently. If you are within 5 spirit of your maximum spirit, spirit is consumed on an attack as follows:
spiritToConsume = ceil(spirit / 100)
Damage Dealt is then affected as follows:
damageDealt = ceil(oldDamageDealt  
* (1 + spiritToConsume / 25))
In the Pickaxe, Special Wand, and CHAOS cases above, spirit is still consumed, but you gain no benefits to damage.
==== Fury ====
When you have the CHAOS AURA equipped, Mana Power lets you activate the Fury bar. This bar decreases by 1% each attack and affects Damage Dealt as follows:
damageDealt = ceil(oldDamageDealt  
* (2 + fury / 100))
In the CHAOS case above, fury is still consumed, but you gain no benefits to damage.
=== Revenge ===
The revenge skill acts as a multiplier to Damage Dealt here, as described in the skill description:
damageDealt = ceil(oldDamageDealt  
* (1 + revengeSkillLevel  
* revengeStackCount))
Revenge does not apply in the Pickaxe, Special Wand, and CHAOS situations described above.
=== Damage Penalty ===
Next, a value called Damage Penalty is computed. Its base value is as follows:
damagePenalty = 50  
* enemyLevel1.12 / (level + rank  
* 10 + 999) – 10
On an impossible ascension (before you’ve reached level 9000), the Damage Penalty is increased as follows:
damagePenalty = oldDamagePenalty + (9000 – level) / 300
If Damage Penalty is negative, it gets set to 0 here.
==== Level Penalty ====
If the enemy’s level is higher than yours, Damage Penalty is increased as follows:
* On a medium ascension or at level 9000, damagePenalty = oldDamagePenalty + 10
* On a hard ascension below level 9000, damagePenalty = oldDamagePenalty + 20
* On an impossible ascension below level 9000, damagePenalty = oldDamagePenalty + 50
==== Other Penalties ====
* In Worst Moon, damagePenalty = oldDamagePenalty + 5
* If the enemy is a boss, damagePenalty = oldDamagePenalty + 20
* If the enemy is a zombie and you did not use heal (except when you are in Dark Pyramid), damagePenalty = oldDamagePenalty + 70
At this point, damagePenalty is capped at 99 on an impossible ascension if you are below level 9000, or 95 otherwise. Then, the following penalties are applied, which may exceed these caps:
* In Apocalypse Mode, damagePenalty = oldDamagePenalty + (100 – oldDamagePenalty) / 2
* When fighting the Ascendant below level 9000, damagePenalty = 100
* When using the Sword of Ascendant against an enemy other than the Ascendant, damagePenalty = 100
* When not using the Sword of Ascendant against the Ascendant, damagePenalty = 100
==== Effect of Damage Penalty ====
Your Damage Dealt is reduced by damagePenalty% and rounded down.
This does not affect the Pickaxe, Special Wand, or CHAOS cases above.
=== (Non-)Boss Damage ===
(Non-)Boss damage is now applied as a multiplier to Damage Dealt. Note that set bonuses that increase damage serve as additive increases to (Non-)Boss Damage.
This does not affect the CHAOS case above.
=== Coup de Grace ===
At this point, Damage Dealt is increased by 0.2% per status on the enemy per level of Coup de Grace you have.
=== Critical Hits ===
If you successfully perform a critical hit, Damage Dealt is multiplied by Critical Damage here.
When the spirit crit skill is active, you are guaranteed to crit for 20x damage (only 5x in Worst Moon).
Poison and Reflect attacks cannot be critical hits.
=== Final Changes ===
* If an enemy is in an immune state (e.g., Corrupted Giant Treeman’s Shield), damage is set to 1.
* In the 9001 areas, damage is capped at 200000.
* In CHAOS’ Green Aura, he first takes this damage but then recovers 3x what he took.
= Damage Taken =
The formula for damage taken is much simpler than for damage dealt.
=== Damage Resistance ===
Damage Resistance is the number on the stats screen by “Damage Resist” without the percent sign. It is computed as follows:
damageResist = floor(rank0.25  
* level0.5  
* defensePower  
* equipmentDefense  
* (1 +defensiveElement / 100) / 50000 + defensePower + currentMana  
* protectionLevel / 100)
Damage Resistance is then affected by the Combo Protection skill, as follows:
damageResist = floor(oldDamageResist  
* (1 + tempCombo * 0.05))
==== Worst Moon and Apocalypse Mode ====
In Worst Moon, Damage Resistance is reduced as follows:
damageResist = floor(oldDamageResist0.95)
In Apocalypse Mode, there is a further reduction to Damage Resistance. This reduction is applied after the Worst Moon reduction is applied.
damageResist = floor(oldDamageResist  
* 0.9)
==== Other Changes ====
The following changes occur in order:
* In Defend Mission, damageResist = 0
* Damage Resist is capped at 999,999,999
* If Mana Power is active, damageResist = floor(oldDamageResist + maxMP / 5)
* In Prehistoric Mission, damageResist = floor(oldDamageResist0.45)
* If weakened, damageResist = floor(oldDamageResist  
* 0.4)
* If fighting the Ascendant, damageResist = floor(oldDamageResist  
* 0.4)
=== Damage Resistance Percentage ===
The Damage Resistance Percentage is the percentage in the Damage Resist area of the stat screen. It is computed as follows:
damageResistPct = floor(equipmentDefense / 100) + OPTankerLevel +damageTakenBonuses
==== Spooky Crypt ====
The curse in Spooky Crypt decreases this stat by 1 for every 100 kills in your current streak. This value cannot go below 0.
==== Worst Moon and Apocalypse Mode ====
In Worst Moon, Damage Resistance Percent is halved and rounded down.
In Apocalypse Mode, Damage Resistance Percent is halved again and rounded down.
==== Other Changes ====
The following changes occur in the given order:
* In Defend Mission, damageResistPct = 0
* Damage Resistance Percent is capped at 90%
* In Special Arena, damageResistPct = 80 + floor(oldDamageResistPct / 10)
* If Mana Power is active, damageResistPct = oldDamageResistPct + floor(50 – oldDamageResistPct / 2)
* If weakened, damageResistPct = floor(oldDamageResistPct  
* 0.4)
* If fighting the Ascendant, damageResistPct = floor(oldDamageResistPct  
* 0.4)
=== Temporary Defense ===
When you are hit by an attack, a variable called Temporary Defense is calculated:
tempDEF = floor(damageResist  
* (1 + (level – enemyLevel) / 6000))
==== Level Penalty ====
If you are a lower level than the enemy, tempDEF is halved (rounded down) on an impossible ascension below level 9000 and multiplied by 0.8 (rounded down) otherwise.
==== Caps ====
Temporary Defense cannot go below 0 and cannot exceed twice your Damage Resistance.
=== The Basic Formula ===
damageTaken = ceil((damageTemp – tempDEF)  
* (100 – damageResistPct) / 100)
==== Exceptions ====
The following exceptions are applied in the order given below.
===== Weaken =====
When the enemy is weakened, damageTemp is reduced by Weaken Power%.
===== Absorb =====
When the Absorb skill activates:
damageTemp = -1  
* oldDamageTemp
===== Drowning Damage =====
If the damage is from drowning:
damageTaken = ceil((damageTemp – damageResist / 3)  
* (100 – damageResistPct / 3) / 100)
===== Magic Attacks =====
Damage taken from magic attacks is further reduced by Magic Resist%, rounded up
===== Ignore Defense Attacks =====
For attacks that ignore defense, such as the lightning bolts in Apocalypse mode:
damageTaken = damageTemp
===== The MEGABOSS’s Revenge =====
In The MEGABOSS’s Revenge:
damageTaken = ceil(damageTaken  
* (1 + revengeRage / 100))
===== Secret Dungeon =====
In Secret Dungeon, if you entered the raid with the Anti-Curse potion, damageTaken is reduced by 70%, rounded up.
===== Minimum Damage =====
At this point, attacks that would deal less than 1 damage are set to do 1 damage.
===== CHAOS =====
When CHAOS is in his Red Aura, Damage Taken is increased by 30%, rounded up.
=== The Effects of Damage Taken ===
Damage Taken is immediately subtracted from your health. Then, you take additional damage if you have Mana Power or Spirit Power (but not Fury) active as described below.
==== Mana Power ====
For attacks that do not ignore defense and and are not affected by Absorb, if your current MP exceeds damageTaken, your MP is reduced by that amount.
If your MP does not exceed this, your MP is reduced to 0 and you take an additional damageTaken – currentMana damage.
==== Spirit Power ====
For attacks that do not ignore defense and are not affected by Absorb, if your current spirit exceeds floor(damageTaken / 2000), your spirit is reduced by that amount.
If your spirit does not exceed this, your spirit is reduced to 0, and you take an additional damageTaken – currentSpirit  
* 2000 damage.
Category:Battle Arena
Category:Player Guide