Core/Auras: Remove incorrect implementation of SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER (this attribute does something else) (#29195)

This commit is contained in:
Seyden
2023-07-28 23:23:38 +02:00
committed by GitHub
parent fe7e95b9f3
commit 799d63ce2c

View File

@@ -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();