aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2020-09-13 08:48:53 -0300
committerShauren <shauren.trinity@gmail.com>2022-02-06 00:10:56 +0100
commitc42470ffb70ddf90ce0d3f447c0e57548be17192 (patch)
tree279639b7e87147753a934229297501dd7fe018bd /src
parent6ede2740246a554f5fbbd6b015759c8e811388f3 (diff)
Core/Spells: Do not reset periodic timer for stacking DoTs on recast
(cherry picked from commit d7a78c19302d83b72e7382593b59ba0656972c92)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 785ad4008f9..2cbfb94b1b7 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -2995,7 +2995,7 @@ void Spell::DoSpellEffectHit(Unit* unit, SpellEffectInfo const& spellEffectInfo,
if (!hitInfo.HitAura)
{
- bool const resetPeriodicTimer = !(_triggeredCastFlags & TRIGGERED_DONT_RESET_PERIODIC_TIMER);
+ bool const resetPeriodicTimer = (m_spellInfo->StackAmount < 2) && !(_triggeredCastFlags & TRIGGERED_DONT_RESET_PERIODIC_TIMER);
uint32 const allAuraEffectMask = Aura::BuildEffectMaskForOwner(m_spellInfo, MAX_EFFECT_MASK, unit);
AuraCreateInfo createInfo(m_castId, m_spellInfo, GetCastDifficulty(), allAuraEffectMask, unit);