mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Spells: Fixed downranking coefficient penalty formula
Closes #21318
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user