mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
fix(Core/Spells): Fixed calculating damage/healing pct auras on aura refresh. (#9316)
Fixes #8962
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user