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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user