From c1ee9c737b8a6b7c488e510d3b9bc1c10241ea32 Mon Sep 17 00:00:00 2001 From: talamortis Date: Fri, 18 Nov 2016 21:05:06 +0000 Subject: [PATCH] Update spell_paladin.cpp --- src/scripts/Spells/spell_paladin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/Spells/spell_paladin.cpp b/src/scripts/Spells/spell_paladin.cpp index 4e51ca62d..9435105e0 100644 --- a/src/scripts/Spells/spell_paladin.cpp +++ b/src/scripts/Spells/spell_paladin.cpp @@ -336,7 +336,7 @@ class spell_pal_ardent_defender : public SpellScriptLoader // Max heal when defense skill denies critical hits from raid bosses // Formula: max defense at level + 140 (raiting from gear) uint32 reqDefForMaxHeal = victim->getLevel() * 5 + 140; - float pctFromDefense = (defenseSkillValue = victim->getLevel()*5.0f) / 140.0f; + float pctFromDefense = (defenseSkillValue >= reqDefForMaxHeal); if (pctFromDefense < 0.0f) pctFromDefense = 0.0f; else if (pctFromDefense > 1.0f)