Core/Spells: ported spell effect value calculation from cata_classic branch

This commit is contained in:
Ovahlord committed 2025-06-07 11:40:18 +02:00
1 parent 57416b873f
commit 4524c29f2c
5 files changed
+107 -161

No files matched your search

+2 -2
View File
@@ -2418,9 +2418,9 @@ Player* WorldObject::GetSpellModOwner() const
}
// function uses real base points (typically value - 1)
int32 WorldObject::CalculateSpellDamage(Unit const* target, SpellInfo const* spellProto, uint8 effectIndex, int32 const* basePoints) const
int32 WorldObject::CalculateSpellDamage(Unit const* target, SpellInfo const* spellProto, uint8 effIndex, int32 const* basePoints /*= nullptr*/) const
{
return spellProto->Effects[effectIndex].CalcValue(this, basePoints, target);
return spellProto->Effects[effIndex].CalcValue(this, basePoints, target);
}
float WorldObject::GetSpellMaxRangeForTarget(Unit const* target, SpellInfo const* spellInfo) const