fix(Core/Spells): fix DoEffectCalcAmount receiving amount without spell power (#24759)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-19 12:58:32 -06:00
committed by GitHub
parent ab29745d6a
commit 96b51b1dd4
2 changed files with 216 additions and 1 deletions
@@ -552,7 +552,6 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
// xinef: save base amount, before calculating sp etc. Used for Unit::CastDelayedSpellWithPeriodicAmount
SetOldAmount(amount * GetBase()->GetStackAmount());
GetBase()->CallScriptEffectCalcAmountHandlers(this, amount, m_canBeRecalculated);
// Xinef: Periodic auras
if (caster)
@@ -576,6 +575,8 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
break;
}
GetBase()->CallScriptEffectCalcAmountHandlers(this, amount, m_canBeRecalculated);
amount *= GetBase()->GetStackAmount();
return amount;
}