fix(Core/Spells): Fixed calculating damage/healing pct auras on aura refresh. (#9316)

Fixes #8962
This commit is contained in:
UltraNix
2021-11-30 00:36:48 +01:00
committed by GitHub
parent a92efd9672
commit c36168c604

View File

@@ -894,11 +894,18 @@ void Aura::RefreshTimers(bool periodicReset /*= false*/)
Unit* caster = GetCaster();
if (!caster)
{
return;
}
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
if (AuraEffect* aurEff = m_effects[i])
{
aurEff->CalculatePeriodic(caster, periodicReset, false);
aurEff->CalculatePeriodicData();
}
}
}
void Aura::SetCharges(uint8 charges)