Core/Spells: implement spellpower and attackpower coefficient scaling

This commit is contained in:
Ovahlord committed 2022-01-05 20:19:06 +01:00
1 parent d1c006d4dd
commit 2dc07876ea
3 files changed
+43 -25

No files matched your search

+8
View File
@@ -3303,6 +3303,14 @@ uint32 SpellInfo::GetMechanicImmunityMask(Unit* caster) const
return mechanicImmunityMask;
}
float SpellInfo::CalculateScaledCoefficient(Unit const* caster, float coefficient) const
{
if (coefficient == 0.f || !caster || !GetSpellScaling())
return coefficient;
return coefficient *= GetSpellScalingMultiplier(caster, GetSpellScaling());
}
float SpellInfo::GetMinRange(bool positive) const
{
if (!RangeEntry)