From 6cd16b0ca9ff43b025e286f336b6af03c49b37db Mon Sep 17 00:00:00 2001 From: Gildor Date: Thu, 8 Oct 2020 20:36:50 +0200 Subject: Core/Spells: Aura refresh improvements (#25511) (cherry picked from commit c13ccaab5c70361d3a51005a1ce374291835b39c) --- src/server/game/Spells/Spell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/server/game/Spells/Spell.cpp') diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index f1203d70e3d..39a4e5502e6 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -3006,7 +3006,7 @@ void Spell::DoSpellEffectHit(Unit* unit, SpellEffectInfo const& spellEffectInfo, .SetOwnerEffectMask(aura_effmask) .IsRefresh = &refresh; - if (Aura* aura = Aura::TryRefreshStackOrCreate(createInfo)) + if (Aura* aura = Aura::TryRefreshStackOrCreate(createInfo, false)) { hitInfo.HitAura = aura->ToUnitAura(); @@ -3055,6 +3055,9 @@ void Spell::DoSpellEffectHit(Unit* unit, SpellEffectInfo const& spellEffectInfo, hitInfo.HitAura->SetMaxDuration(hitInfo.AuraDuration); hitInfo.HitAura->SetDuration(hitInfo.AuraDuration); } + + if (refresh) + hitInfo.HitAura->AddStaticApplication(unit, aura_effmask); } } else -- cgit v1.2.3