mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user