Chapter 1: Magic resistance
HERO

All heroes have an innate magic resistance of 25%. This means, whenever someone cast a spell against your hero, your hero will not receive all the damage. 25% of the damage will be negated or subtracted.


Example: Lion used a level 3 Finger of Death to your hero...

Expected Damage = 850
Reduced Damage = 25% of 850
= 850 x 0.25
= 212.5

Real Damage = 850 - 212.5
= 637.5 or 638


This is the beautiful thing. You expect that the damage of level 3 Finger of Death is 850, but in reality your hero will only receive 638 damage.




ITEM

More good news. There are items that you can buy for your hero to further increase the spell resistance. These are:



khadgars pipe of insight
Adds 30% magic resistance
Cost: 3653 Gold


Hood of Defiance
Adds 30% magic resistance
Cost: 2050 Gold

Planewalker's Cloak
Adds 15% magic resistance
Cost: 400 Gold

Item Stacking Rule. Do these items stack? No, they do not stack. These three items follows the "latest acquired" stacking rule. It means, only the spell resistance of the latest acquired item will work. If for example you have Hood of Defiance in your inventory and then you pick a Planewalker's Cloak, the magic resistance of Planewalker's Cloak will override Hood of Defiance's.

Hero and Item Combined. Now we have two sources of magic resistance. Sadly, these two will stack with diminishing return. Here is the formula:


Total Magic Resistance = 1 - ((1 - A) x (1 - B))

where: A = hero innate magic resistance
B = item's magic resistance


Example: Your hero (25%) has Khadgar's Pipe of Insight (30%)
Total Magic Resistance = 1 - ((1 - 25%) x (1 - 30%))
= 1 - ((1 - 0.25) x (1 - 0.30))
= 1 - ((0.75) x (0.7))
= 1 - 0.525
= 0.475 or 0.48
= 48%


This is how to compute the total magic resistance. With this formula, we can identify what is the total magic resistance of a hero with any of the item above:



Planewalker's
Cloak (15%) Hood of
Defiance (30%) Khadgar's Pipe
of Insight (30%)
Hero Innate Magic
Resistance (25%) 36% 48% 48%




SKILL

Some heroes has their own skill that will also increase their spell resistance. These heroes and skills are:


Viper
Skill: Corrosive Skin
Adds 5% / 10% / 15% / 20% magic resistance

Magina
Skill: Spell Shield
Adds 10% / 20% / 30% / 40% magic resistance
Azwraith
Skill: Phantom Edge
Adds 10% / 15% / 20% magic resistance
Pudge
Skill: Flesh Heap
Adds 4% / 8% / 12% / 16% magic resistance


These heroes are special. If you are using them, you will now have a third source of magic resistance. But the same with item, their skill will add to the toal magic resistance with diminishing return. Our formula will change a bit, here:


Total Magic Resistance = 1 - ((1 - A) x (1 - B) x (1 - C))

where: A = hero innate magic resistance
B = item's magic resistance
C = skill's magic resistance


Example: Magina (25%) has a Hood of Defiance (30%) and a level 4 Spell Shield (40%)
Total Magic Resistance = 1 - ((1 - 25%) x (1 - 30%) x (1 - 40%))
= 1 - ((1 - 0.25) x (1 - 0.30) x (1 - 0.40))
= 1 - ((0.75) x (0.7) x (0.6))
= 1 - 0.315
= 0.685 or 0.69
= 69%


So with this formula, we can identify what will be the total magic resistance of these heroes with their skill and item:


Viper

Netherdrake
Hidden Text click here to show


Magina

Anti-Mage
Hidden Text click here to show


Azwraith

Phantom Lancer
Hidden Text click here to show


Pudge

Butcher
Hidden Text click here to show


OTHERS

All creeps (including neutrals) have no spell resistance. But some summons have:


Revenant

Hero: Visage
33% (level 1 and 2) or 70% (level 3) magic resistance

Infernal

Hero: Demnok Lannik
50% magic resistance

Spirit Bear

Hero: Syllabear
33% (level 4) magic resistance

Original source [url]http://www.dotastrategy.com/library-guide-29-MagicResistance.html[/url]