From 92ea73bbce0e0961df4948dc51ce72858202fb74 Mon Sep 17 00:00:00 2001 From: Zwisus Date: Fri, 18 Mar 2016 14:34:11 +0800 Subject: [PATCH] Holy Light and Seal of Righteousness PROC and Flash of Light receive benefit from Spell Damage and Healing too low. Signed-off-by: Zwisus --- src/game/Object/Unit.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/Object/Unit.cpp b/src/game/Object/Unit.cpp index 29d263cf..d98cd7f7 100644 --- a/src/game/Object/Unit.cpp +++ b/src/game/Object/Unit.cpp @@ -5541,8 +5541,11 @@ int32 Unit::SpellBonusWithCoeffs(Unit* pCaster, SpellEntry const* spellProto, in else { coeff = CalculateDefaultCoefficient(spellProto, damagetype); } - //float LvlPenalty = CalculateLevelPenalty(spellProto);//[-ZERO] not need. http://wowwiki.wikia.com/wiki/Patch_2.0.1 - float LvlPenalty = 1.0f; + float LvlPenalty = CalculateLevelPenalty(spellProto); + + // Holy Light and Seal of Righteousness PROC and Flash of Light receive benefit from Spell Damage and Healing too low. + if (spellProto->SpellFamilyName == SPELLFAMILY_PALADIN && (spellProto->SpellIconID == 25 || spellProto->SpellIconID == 70 || spellProto->SpellIconID == 242)) + LvlPenalty = 1.0f; // Spellmod SpellDamage if (Player* modOwner = GetSpellModOwner())