mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Merge pull request #16494 from Rushor/calc
Core/Spell: Magic Absorption Calculation
This commit is contained in:
@@ -418,7 +418,8 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster, int32 const* bp, Unit const
|
||||
level = int32(_spellInfo->MaxLevel);
|
||||
else if (level < int32(_spellInfo->BaseLevel))
|
||||
level = int32(_spellInfo->BaseLevel);
|
||||
level -= int32(_spellInfo->SpellLevel);
|
||||
if (!_spellInfo->IsPassive())
|
||||
level -= int32(_spellInfo->SpellLevel);
|
||||
basePoints += int32(level * basePointsPerLevel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user