diff options
author | Trazom62 <none@none> | 2010-04-25 21:31:55 +0200 |
---|---|---|
committer | Trazom62 <none@none> | 2010-04-25 21:31:55 +0200 |
commit | 9b83945c33cb4973ca277668a49bae827bf3d469 (patch) | |
tree | 3e77aa5f6a20b521a544a99eb57c2c3fb764f752 /src/game/Unit.h | |
parent | cf7170f69d394025e255376ab6b6bb8c684980d1 (diff) |
Fix resilience update for 3.3.x. Thanks dr.tenma.
Fixes issue #198.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.h')
-rw-r--r-- | src/game/Unit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h index 1aef0002db8..a9ff929f910 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -1309,8 +1309,8 @@ class Unit : public WorldObject // player or player's pet resilience (-1%), cap 100% uint32 GetMeleeDamageReduction(uint32 damage) const { return GetCombatRatingDamageReduction(CR_CRIT_TAKEN_MELEE, 2.0f, 100.0f, damage); } - uint32 GetRangedDamageReduction(uint32 damage) const { return GetCombatRatingDamageReduction(CR_CRIT_TAKEN_MELEE, 2.0f, 100.0f, damage); } - uint32 GetSpellDamageReduction(uint32 damage) const { return GetCombatRatingDamageReduction(CR_CRIT_TAKEN_MELEE, 2.0f, 100.0f, damage); } + uint32 GetRangedDamageReduction(uint32 damage) const { return GetCombatRatingDamageReduction(CR_CRIT_TAKEN_RANGED, 2.0f, 100.0f, damage); } + uint32 GetSpellDamageReduction(uint32 damage) const { return GetCombatRatingDamageReduction(CR_CRIT_TAKEN_SPELL, 2.0f, 100.0f, damage); } float MeleeSpellMissChance(const Unit *pVictim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const; SpellMissInfo MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell); |