aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/Spell.cpp
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2020-10-08 20:36:50 +0200
committerShauren <shauren.trinity@gmail.com>2022-02-28 16:04:48 +0100
commit6cd16b0ca9ff43b025e286f336b6af03c49b37db (patch)
tree25dbab8a5e376c7848c9274afe528fc082c20e9b /src/server/game/Spells/Spell.cpp
parentad7ed08c07dec7f560a93032edfd24f82676dafc (diff)
Core/Spells: Aura refresh improvements (#25511)
(cherry picked from commit c13ccaab5c70361d3a51005a1ce374291835b39c)
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r--src/server/game/Spells/Spell.cpp5
1 files changed, 4 insertions, 1 deletions
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