MDEF

Magic Defense is the total magical defense that is factored upon magic damage, which is generally based on MATK as whole or partially. However, there are exceptions.
The descriptions used here refer to Hard and Soft MDEF. These names are used for clarity. The vast majority of players do not use these terms in general conversation, and instead refer Armor Mdef (hard) and INT Mdef (soft). Hard MDEF works as a relative reduction, whereas Soft MDEF is a subtractive reduction.
To obtain the final damage,apply Hard MDEF first and then apply soft MDEF.
It is shown as A + B in the Status Window, where A represents the Soft MDEF and B represents the Hard MDEF.
== Hard MDEF ==
Hard m. defense, also known as "armor" or "equipment" m. defense reduces, incoming magic damage multiplicatively.
* Damage after Hard MDEF = Damage × [(1,000 + HardMDEF) ÷ (1,000 + HardMDEF × 10)]
For example, a player with a Hard MDEF of 60 will have incoming m. damage reduced by about ⅓, and a player with a Hard MDEF of 125 will have incoming damage reduced by half.
Hard m. defense has a base value of 0, and is increased by equipment, some skills, and items.
Every 1 Hard M.DEF provides resistance vs. the following Status Effects:
* Decrease AGI: Decreases chance from being inflicted
* Frozen: -1% chance from being inflicted
* Stone: -1% chance from being inflicted
=== Additive Bonuses ===
Item/Skill	Max Modifier	Additional notes
 	+3 	Shield. Only if refined to +5 or lower.
 	+3 	Footgear. May reflect magic back to the caster.
 	+1 	Armor. Gives immunity to Frozen.
 	+3 	Armor. Mage class only. May reflect magic back to the caster.
 	+5 	Headgear. Only if refined to +5 or lower.
 	+5 	Armor. Only if refined to +5 or lower.
 	+8 	Garment. Only if refined to +5 or lower.
 	Var 	+UpgradeLv
 	+7 	Footgear. Only if refined to +5 or lower.
 	+20 	
 	+1 	Headgear. Acolyte class only.
 	+10 	Shield.
 	+2 	Armor.
 	+5 	Shield. Only if refined to +9 or higher.
 	+3 	Garment.
 	+80 	Garment. If used by Warlock.
=== Multiplicative Bonuses ===
Item/Skill	Max Modifier	Additional notes
 	-50% / -100%	Monsters: -50%. Players: -100%.
 	-50% 	Armor. Doubles Max HP.
== Soft MDEF ==
Soft magic defense, also known as "INT" magic defense, reduces incoming magic damage directly.
SoftMDEF = floor((INT + (VIT ÷ 5) + (DEX ÷ 5) + (BaseLv ÷ 4))
TotalSoftMDEF = [(SoftMDEF + BonusA) × (1 + BonusB ÷ 100)]
* BonusA is the sum of additive bonuses.
* BonusB is the sum of multiplicative bonuses.
Monsters use a different SoftMDEF formula.
SoftMDEF = floor(BaseLvl ÷ 4) + floor (VIT ÷ 10) + floor(INT ÷ 5)
=== Additive Modifiers ===
=== Multiplicative Modifiers ===
== Bypassing MDEF ==
===Calculation===
 Final MDEF = (Total_Mdef - Sum_MdefReduceValues) × (1 − Sum_MdefBypassPercent ÷ 100)
* Total_Mdef = Total Hard MDEF shown in the Status Window.
* Sum_MdefReduceValues = sum of flat values that reduce MDEF, like Odin's Power.
* Sum_MdefBypassPercent = sum of modifiers that bypass MDEF by a percent, like Expiatio and .
*For example, if a player has 25% MDEF Bypass from Expiatio buff, 70% MDEF Bypass from Armor of White Thread [1], and Odin's Power Level 2 (-40 MDEF) is casted on an enemy with 100 Hard MDEF, the enemy's final MDEF is calculated as:
**Final MDEF = (100 - 40) x (1 - (25+70) ÷ 100) 
The skills and equipment below are known to bypass MDEF. All effects stack additively.
=== Skills ===
Skill	Notes
 	Bypass 5% MDEF per skill level (Up to 25% at level 5)
=== Weapons ===
Weapon	Notes
 	Bypass 10% of hard magic defense of normal monsters and boss monsters when performing a magical attack. Bypass an additional 1% of hard magic defense of normal monsters and boss monsters when performing a magical attack per upgrade level of the item.
 	Bypass 1% of Mdef of Normal, Boss, Player targets when performing a magical attack per upgrade level of the item.
=== Armor ===
Name 	Notes
 	If upgrade level is +10 or higher, bypass 100% of hard magic defense of All race targets when performing a magical attack.
 	Bypass 50% of hard magic defense of All Races when performing a magical attack.
 	Bypass 10% of hard magic defense of normal class monsters when performing a magical attack. Bypass an additional 4% of hard magic defense of normal class monsters when performing a magical attack per upgrade level of the item, where the effect caps out at 30%.
 	Bypass 10% of hard magic defense of all race targets when performing a magical attack.If upgrade level is +7 or higher, bypass an additional 20% of hard magic defense of all race targets when performing a magical attack.If upgrade level is +8 or higher, bypass an additional 20% of hard magic defense of all race targets when performing a magical attack.If upgrade level is +9 or higher, bypass an additional 20% of hard magic defense of all race targets when performing a magical attack.
 	If upgrade level is +7 or higher, bypass 25% of hard defense of all class monsters. If upgrade level is +9 or higher, bypass an additional 25% of hard defense of all class monsters.
 	Adds a 5% chance to bypass 25% of hard magic defense on normal monsters and players for 5 seconds when performing a magical attack.
 	
 	Bypass 15% of hard magic defense of normal monsters, Boss monsters and players when performing a magical attack for every 18 base STR.
La'cryma Stick & Pororoca Shoes Set 	Bypass 5% of hard magic defense of normal monsters and boss monsters when performing a magical attack per level of Frost Nova known.
Survivor's Shoes & Survivor's Rod Set 	Bypass 50% of hard magic defense of normal monsters and boss monsters when performing a magical attack.
https://static.divine-pride.net/images/items/item/450132.png Magical Cloth [1] & Set	Ignores magical defense of all races by 50%. Warning: Card requirement may be wrong, needs testing
=== Cards ===
Card 	Notes
 	Bypass 100% of hard magic defense of normal monsters when performing a magical attack.
 	When compounded to a Rod, Int +1 and ignores 2% of the MDEF of enemies.
 	Bypass 30% of hard magic defense of Boss monsters when performing a magical attack.
Neo Punk Card & Big Ben Card Set 	Bypass 50% of hard magic defense of Formless and Demon race targets when performing a magical attack.
Nightmare Arclouse Card & Nightmare Mimic Card Set	Bypass 50% of hard magic defense of Brute and Undead race targets when performing a magical attack.
== See Also ==
* DEF
Category: Mechanics