|
First, the game calculates all damages (I won't go into details about it here).Then it applies all the various damage modifying (reducing really) things in the following order:
1. If you are a player and have "cant be frozen," set freeze and chill time to 0.
2. If you have any item with "half freeze time," cut chill duration in half (regardless of how many such items you have).
3. If you have the Poison Resist shrine, set poison duration to 0.
4. Apply resistance to each damage type.
- 4a. Add up all resistance the target has.
- 4b. Apply cold mastery to cold resistance.
- 4c. Apply difficulty penalty for players but not their minions, summonables and such (monsters have specific resistance for each difficulty instead). Note that physical resistance is NOT modified by the difficulty penalty. All other penalties are though, including poison duration.
- 4d. Apply resistance cap, possibly modified by added max resistance modifiers.
Some notes on resistances:
Cold resistance: Modifies cold damage as well as freeze and chill time. Note that the specific difficulty reductions for monsters are applied later when the monster is actually set to be frozen or chilled. Capped at 75% but can be increased to 95%.
Fire resistance: Modifies fire damage. Capped at 75% but can be increased to 95%.
Lightning resistance: Modifies lighting damage. Capped at 75% but can be increased to 95%.
Magic resistance: Modifies magic damage. Capped at 75% but can be increased to 95%. Note that characters normally have 0% magic resistance since there are no items that give magic resistance. Some curses or other skills may affect it though. Example of attacks that do magic damage are the bone spells of the Necromancer.
Physical resistance: Modifies physical damage. Capped at 95%. Note that monsters of the Itches type has a cap at 99% instead. This typically only comes into effect for the bosses with Stone Skin. Note that characters normally have 0% physical resistance since there are no items that give physical resistance. Some curses or other skills may affect it though. Skills like Amplify Damage work by lowering the physical resistance of the target, by the way. Physical resistance is not modified by difficulty.
Poison resistance: Modifies poison damage (the damage per frame value). Capped at 75% but can be increased to 95%.
Poison length reduction: Modifies the poison length. Capped at 95%. This modifier only comes as 25%, 50% and 75% modifiers. It IS reduced by the difficulty penalty.
Life, Mana and Stamina drain/steal can not be resisted in any way.
5. Apply -X damage to physical damage and -X magical damage to Cold, Fire, Lighting and Magic. Also apply -X magical damage to life, mana and stamina drain/steal. Note that the monsters drain value is the actual value of life, mana and stamina to remove, while the players steal value is the percentage value.
6. Apply absorption to Cold, Fire, Lightning and Magic damage.
- 6a. First apply the X% absorption, basically reducing the damage by that amount.
- 6b. Then apply the X absorption, basically subtracting the damage by that amount.
- 6c. Add up all the amount of damage that was absorbed from both the steps above for all the damage types. This will be the total absorbed amount of damage.
7. Apply Bone Armor. This basically removes a certain amount of physical damage from the attack equal to the amount of Bone Armor you have. In the process, the Bone Armor is reduced by the same amount. If you had more Bone Armor than the physical damage, the physical damage is reduced to 0. Otherwise, the Bone Armor is terminated and the physical damage is reduced with whatever amount of Bone Armor there was left.
8. Add together all types of damages. Up until now, each damage has existed separately. From this step on, in addition, the game has a value that is the sum of all the different types of damages. Usually it is this sum that the game uses from now on when it modifies damage. Some things will be based on specific damage types though, normally the physical one, for example Thorns and Iron Maiden or the life and mana stealing of characters. The values added together in this step are for the sake of completeness; physical, cold, fire, lightning, magic and poison damage (the damage per frame, thus one frame of damage). If the attacker is a monster its life drain amount is also added. When in the future, there is a reference to the total damage, it is this sum that is meant. The individual damage types are from now on not modified any more unless specifically stated.
9. If the attack is PvP (player vs player), the total damage and the poison damage (per frame value) are cut in half. Note that the individual damage values for each type are NOT cut in half. Thus, for example, life and mana stealing will still be based on the full value. As basically all attacks in the game go through this damage modification routine, all attacks that are PvP will suffer the halving.
10. If the attack is either Andariel, Duriel, Mephisto or Diablo attacking a players minion (including hireling, summoned, revived and so on) the total damage and poison damage (per frame) is multiplied by 10. This is the reason they die so fast against those end of act bosses.
11. Apply the Energy Shield reduction. This will reduce the total damage by the listed percentage and instead remove twice as much mana.
|