Core/Spells: Aura refresh improvements

Port From (https://github.com/TrinityCore/TrinityCore/commit/6cd16b0ca9ff43b025e286f336b6af03c49b37db)
This commit is contained in:
hondacrx
2022-05-24 13:02:26 -04:00
parent 1e80eb21f0
commit e775c710db
2 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -2133,7 +2133,7 @@ namespace Game.Spells
createInfo.SetPeriodicReset(resetPeriodicTimer);
createInfo.SetOwnerEffectMask(aura_effmask);
Aura aura = Aura.TryRefreshStackOrCreate(createInfo);
Aura aura = Aura.TryRefreshStackOrCreate(createInfo, false);
if (aura != null)
{
hitInfo.HitAura = aura.ToUnitAura();
@@ -2147,7 +2147,6 @@ namespace Game.Spells
hitInfo.HitAura.ModStackAmount(m_spellValue.AuraStackAmount);
}
hitInfo.HitAura.SetDiminishGroup(hitInfo.DRGroup);
if (!m_spellValue.Duration.HasValue)
@@ -2189,6 +2188,9 @@ namespace Game.Spells
hitInfo.HitAura.SetMaxDuration(hitInfo.AuraDuration);
hitInfo.HitAura.SetDuration(hitInfo.AuraDuration);
}
if (createInfo.IsRefresh)
hitInfo.HitAura.AddStaticApplication(unit, aura_effmask);
}
}
else