From 5ea6815ea196dbd07bda501ece1fd5603bd392ce Mon Sep 17 00:00:00 2001 From: tehmarto Date: Sun, 6 Jun 2010 22:23:16 +0400 Subject: [PATCH] [10041] Use for spell 49145 and ranks for decrease SPELL_DIRECT_DAMAGE damage. Signed-off-by: VladimirMangos --- src/game/Unit.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 3d1793db7..f54cca264 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1968,7 +1968,7 @@ void Unit::CalculateAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolMask, D if (spellProto->SpellIconID == 3006) { // You have a chance equal to your Parry chance - if (damagetype == DIRECT_DAMAGE && // Only for direct damage + if (damagetype == SPELL_DIRECT_DAMAGE && // Only for direct spell damage roll_chance_f(GetUnitParryChance())) // Roll chance RemainingDamage -= RemainingDamage * currentAbsorb / 100; continue; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 111e3d48a..8bc36d8c8 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10040" + #define REVISION_NR "10041" #endif // __REVISION_NR_H__