aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbiglad <none@none>2009-10-10 17:44:07 +0100
committerbiglad <none@none>2009-10-10 17:44:07 +0100
commitdfc2945961ac0e6e848170c181134fb554077559 (patch)
tree83b226a2aecbf752229baebca09a2af511ea261d /src
parentfe5a3e3c431f897497264beb255b22eeb318d3cf (diff)
* add a missed line when backing out ArP changes, (it was commented out anyway)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index d052b2305b4..90eab95401b 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -1691,9 +1691,10 @@ uint32 Unit::CalcArmorReducedDamage(Unit* pVictim, const uint32 damage, SpellEnt
float armorPen = maxArmorPen*((Player*)this)->GetRatingBonusValue(CR_ARMOR_PENETRATION) / 100.0f;
// Got the value, apply it
armor -= armorPen;
- // Ignore enemy armor by SPELL_AURA_MOD_TARGET_ARMOR_PCT
}
-
+ // Ignore enemy armor by SPELL_AURA_MOD_TARGET_ARMOR_PCT
+ //armor *= 1.0f - GetTotalAuraModifier(SPELL_AURA_MOD_ARMOR_PENETRATION_PCT) / 100.0f;
+
if (armor < 0.0f)
armor = 0.0f;