mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
Core/Script Paladin Argent Defender
Fix Spell Paladin Argent Defender
This commit is contained in:
@@ -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 = victim->getLevel()*5.0f) / 140.0f;
|
||||
if (pctFromDefense < 0.0f)
|
||||
pctFromDefense = 0.0f;
|
||||
else if (pctFromDefense > 1.0f)
|
||||
|
||||
Reference in New Issue
Block a user