aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-01-27 12:19:18 +0100
committerShauren <shauren.trinity@gmail.com>2018-01-27 12:19:18 +0100
commit2ab4e6c7aaa972f2a3c14a75d3065f9a67d87f8a (patch)
tree4a093a5f6eb15393a68d681e528b13c329efc378 /src/server/scripts
parent275c17b4c23468a3274079c1174a7e4999131d81 (diff)
Core/Spells: Fixed downranking coefficient penalty formula
Closes #21318
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Spells/spell_mage.cpp6
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp2
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp2
-rw-r--r--src/server/scripts/Spells/spell_warlock.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp
index 5c8d57c65f2..0c122bfc685 100644
--- a/src/server/scripts/Spells/spell_mage.cpp
+++ b/src/server/scripts/Spells/spell_mage.cpp
@@ -616,7 +616,7 @@ class spell_mage_fire_frost_ward : public SpellScriptLoader
float bonus = 0.8068f;
bonus *= caster->SpellBaseHealingBonusDone(GetSpellInfo()->GetSchoolMask());
- bonus *= caster->CalculateLevelPenalty(GetSpellInfo());
+ bonus *= caster->CalculateSpellpowerCoefficientLevelPenalty(GetSpellInfo());
amount += int32(bonus);
}
@@ -935,7 +935,7 @@ class spell_mage_ice_barrier : public SpellScriptLoader
// Glyph of Ice Barrier is only applied at the spell damage bonus because it was already applied to the base value in CalculateSpellDamage
bonus = caster->ApplyEffectModifiers(GetSpellInfo(), aurEff->GetEffIndex(), bonus);
- bonus *= caster->CalculateLevelPenalty(GetSpellInfo());
+ bonus *= caster->CalculateSpellpowerCoefficientLevelPenalty(GetSpellInfo());
amount += int32(bonus);
}
@@ -1114,7 +1114,7 @@ class spell_mage_mana_shield : public SpellScriptLoader
float bonus = 0.8053f;
bonus *= caster->SpellBaseHealingBonusDone(GetSpellInfo()->GetSchoolMask());
- bonus *= caster->CalculateLevelPenalty(GetSpellInfo());
+ bonus *= caster->CalculateSpellpowerCoefficientLevelPenalty(GetSpellInfo());
amount += int32(bonus);
}
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index e75fb3db34c..c76f0325c29 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -1919,7 +1919,7 @@ class spell_pal_sacred_shield : public SpellScriptLoader
// Divine Guardian is only applied at the spell healing bonus because it was already applied to the base value in CalculateSpellDamage
bonus = caster->ApplyEffectModifiers(GetSpellInfo(), aurEff->GetEffIndex(), bonus);
- bonus *= caster->CalculateLevelPenalty(GetSpellInfo());
+ bonus *= caster->CalculateSpellpowerCoefficientLevelPenalty(GetSpellInfo());
amount += int32(bonus);
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index 0d30d4fa177..2dc2c340cd8 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -1013,7 +1013,7 @@ class spell_pri_power_word_shield : public SpellScriptLoader
// Improved PW: Shield: its weird having a SPELLMOD_ALL_EFFECTS here but its blizzards doing :)
// Improved PW: Shield is only applied at the spell healing bonus because it was already applied to the base value in CalculateSpellDamage
bonus = caster->ApplyEffectModifiers(GetSpellInfo(), aurEff->GetEffIndex(), bonus);
- bonus *= caster->CalculateLevelPenalty(GetSpellInfo());
+ bonus *= caster->CalculateSpellpowerCoefficientLevelPenalty(GetSpellInfo());
amount += int32(bonus);
diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp
index 279553f87e9..c82c7cf445f 100644
--- a/src/server/scripts/Spells/spell_warlock.cpp
+++ b/src/server/scripts/Spells/spell_warlock.cpp
@@ -1230,7 +1230,7 @@ class spell_warl_shadow_ward : public SpellScriptLoader
float bonus = 0.8068f;
bonus *= caster->SpellBaseHealingBonusDone(GetSpellInfo()->GetSchoolMask());
- bonus *= caster->CalculateLevelPenalty(GetSpellInfo());
+ bonus *= caster->CalculateSpellpowerCoefficientLevelPenalty(GetSpellInfo());
amount += int32(bonus);
}