Core/Spells: Do not reset periodic timer for stacking DoTs on recast
Port From (https://github.com/TrinityCore/TrinityCore/commit/c42470ffb70ddf90ce0d3f447c0e57548be17192)
This commit is contained in:
@@ -2138,7 +2138,7 @@ namespace Game.Spells
|
||||
// delayed spells with multiple targets need to create a new aura object, otherwise we'll access a deleted aura
|
||||
if (hitInfo.HitAura == null)
|
||||
{
|
||||
bool resetPeriodicTimer = !_triggeredCastFlags.HasFlag(TriggerCastFlags.DontResetPeriodicTimer);
|
||||
bool resetPeriodicTimer = (m_spellInfo.StackAmount < 2) && !_triggeredCastFlags.HasFlag(TriggerCastFlags.DontResetPeriodicTimer);
|
||||
uint allAuraEffectMask = Aura.BuildEffectMaskForOwner(m_spellInfo, SpellConst.MaxEffectMask, unit);
|
||||
|
||||
AuraCreateInfo createInfo = new(m_castId, m_spellInfo, GetCastDifficulty(), allAuraEffectMask, unit);
|
||||
|
||||
Reference in New Issue
Block a user