Core/Auras: periodics refactor part 1:
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f9e0d92d563c983c229db1569414916b3dce51e)
This commit is contained in:
@@ -742,6 +742,14 @@ namespace Game.Spells
|
||||
|
||||
if (!m_periodicCosts.Empty())
|
||||
m_timeCla = 1 * Time.InMilliseconds;
|
||||
|
||||
// also reset periodic counters
|
||||
for (byte i = 0; i < SpellConst.MaxEffects; ++i)
|
||||
{
|
||||
AuraEffect aurEff = GetEffect(i);
|
||||
if (aurEff != null)
|
||||
aurEff.ResetTicks();
|
||||
}
|
||||
}
|
||||
|
||||
void RefreshTimers(bool resetPeriodicTimer)
|
||||
|
||||
Reference in New Issue
Block a user