From 0b655a8a138945148dddf899d10b2f4ef1f2e971 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 16 Apr 2020 15:10:40 +0200 Subject: [PATCH] Core/Spells: reduced default periodic tick interval back to one second * power obs spells such as food are suposed to have the same interval as their first effect counterpart which sits at one tick per second. This fixes % regeneration food to not restore mana within the intended interval --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 1fbc3d04214..4fa012b6726 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -639,9 +639,9 @@ void AuraEffect::CalculatePeriodic(Unit* caster, bool resetPeriodicTimer /*= tru case SPELL_AURA_POWER_BURN: case SPELL_AURA_PERIODIC_DUMMY: case SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE: - // If no periodic timer is set, fall back to a 5 seconds interval to match client function + // If no periodic timer is set, fall back to a 1 second interval to match client function if (!m_effectPeriodicTimer) - m_effectPeriodicTimer = 5 * IN_MILLISECONDS; + m_effectPeriodicTimer = 1 * IN_MILLISECONDS; m_isPeriodic = true; break;