mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 06:29:50 -04:00
Core/Spells: removed no longer used parameters from SpellEffectInfo::CalcValue and SpellEffectInfo::CalcBaseValue
This commit is contained in:
@@ -2344,12 +2344,12 @@ Player* WorldObject::GetSpellModOwner() const
|
||||
}
|
||||
|
||||
// function uses real base points (typically value - 1)
|
||||
int32 WorldObject::CalculateSpellDamage(Unit const* target, SpellEffectInfo const& spellEffectInfo, int32 const* basePoints /*= nullptr*/, float* variance /*= nullptr*/, uint32 castItemId /*= 0*/, int32 itemLevel /*= -1*/) const
|
||||
int32 WorldObject::CalculateSpellDamage(Unit const* target, SpellEffectInfo const& spellEffectInfo, int32 const* basePoints /*= nullptr*/, float* variance /*= nullptr*/) const
|
||||
{
|
||||
if (variance)
|
||||
*variance = 0.0f;
|
||||
|
||||
return spellEffectInfo.CalcValue(this, basePoints, target, variance, castItemId, itemLevel);
|
||||
return spellEffectInfo.CalcValue(this, basePoints, target, variance);
|
||||
}
|
||||
|
||||
float WorldObject::GetSpellMaxRangeForTarget(Unit const* target, SpellInfo const* spellInfo) const
|
||||
|
||||
Reference in New Issue
Block a user