From 003942efbab7630836d7d803f8074412fe6709a2 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 12 Sep 2023 15:02:20 -0400 Subject: [PATCH] Core/Auras: Remove incorrect implementation of SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER (this attribute does something else) Port From (https://github.com/TrinityCore/TrinityCore/commit/799d63ce2cdf9b8cb7a74f9806178f9fefaba471) --- Source/Game/Spells/Auras/Aura.cs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Source/Game/Spells/Auras/Aura.cs b/Source/Game/Spells/Auras/Aura.cs index 455f912c2..26b94210c 100644 --- a/Source/Game/Spells/Auras/Aura.cs +++ b/Source/Game/Spells/Auras/Aura.cs @@ -816,27 +816,6 @@ namespace Game.Spells void RefreshTimers(bool resetPeriodicTimer) { m_maxDuration = CalcMaxDuration(); - if (m_spellInfo.HasAttribute(SpellAttr8.DontResetPeriodicTimer)) - { - int minPeriod = m_maxDuration; - for (byte i = 0; i < SpellConst.MaxEffects; ++i) - { - AuraEffect eff = GetEffect(i); - if (eff != null) - { - int period = eff.GetPeriod(); - if (period != 0) - minPeriod = Math.Min(period, minPeriod); - } - } - - // If only one tick remaining, roll it over into new duration - if (GetDuration() <= minPeriod) - { - m_maxDuration += GetDuration(); - resetPeriodicTimer = false; - } - } RefreshDuration(); Unit caster = GetCaster();