Core/Spells: implement spellpower and attackpower coefficient scaling
This commit is contained in:
1 parent
d1c006d4dd
commit
2dc07876ea
3 files changed
+43
-25
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user