mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
Core/Spells: Fixed spell value calculation for consumables
Closes #18385
This commit is contained in:
@@ -483,13 +483,7 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster /*= nullptr*/, int32 const*
|
||||
if (!_spellInfo->Scaling.ScalesFromItemLevel)
|
||||
{
|
||||
if (!_spellInfo->HasAttribute(SPELL_ATTR11_SCALES_WITH_ITEM_LEVEL))
|
||||
{
|
||||
GtSpellScalingEntry const* gtScaling = sSpellScalingGameTable.GetRow(level);
|
||||
if (_spellInfo->Scaling.Class > 0)
|
||||
value = GetSpellScalingColumnForClass(gtScaling, _spellInfo->Scaling.Class);
|
||||
else
|
||||
value = gtScaling->Item;
|
||||
}
|
||||
value = GetSpellScalingColumnForClass(sSpellScalingGameTable.GetRow(level), _spellInfo->Scaling.Class);
|
||||
else
|
||||
{
|
||||
uint32 effectiveItemLevel = itemLevel != -1 ? uint32(itemLevel) : 1u;
|
||||
|
||||
Reference in New Issue
Block a user