aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSeyden <saiifii@live.de>2023-07-28 23:23:38 +0200
committerGitHub <noreply@github.com>2023-07-28 23:23:38 +0200
commit799d63ce2cdf9b8cb7a74f9806178f9fefaba471 (patch)
tree78dbe98e7d2a5354294fdb48e8bf3e9a026a3738 /src
parentfe7e95b9f3a1e7be86b626d3e62a824c72ff800b (diff)
Core/Auras: Remove incorrect implementation of SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER (this attribute does something else) (#29195)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index 100ab9e4de7..59c54cd73df 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -924,21 +924,6 @@ void Aura::RefreshDuration(bool withMods)
void Aura::RefreshTimers(bool resetPeriodicTimer)
{
m_maxDuration = CalcMaxDuration();
- if (m_spellInfo->HasAttribute(SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER))
- {
- int32 minPeriod = m_maxDuration;
- for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
- if (AuraEffect const* eff = GetEffect(i))
- if (int32 period = eff->GetPeriod())
- minPeriod = std::min(period, minPeriod);
-
- // If only one tick remaining, roll it over into new duration
- if (GetDuration() <= minPeriod)
- {
- m_maxDuration += GetDuration();
- resetPeriodicTimer = false;
- }
- }
RefreshDuration();