From 78421960dba9cd4021896db9593161a8f43e7d04 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 17 Oct 2021 16:58:00 -0400 Subject: [PATCH] Core/Spells: added a helper to reset proc cooldowns Port From (https://github.com/TrinityCore/TrinityCore/commit/7084e0c3601cef86d01d2162c77623feef9fc8f2) --- Source/Game/Spells/Auras/Aura.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Game/Spells/Auras/Aura.cs b/Source/Game/Spells/Auras/Aura.cs index e167edc20..716488dd3 100644 --- a/Source/Game/Spells/Auras/Aura.cs +++ b/Source/Game/Spells/Auras/Aura.cs @@ -1638,6 +1638,11 @@ namespace Game.Spells m_procCooldown = cooldownEnd; } + public void ResetProcCooldown() + { + m_procCooldown = DateTime.Now; + } + public void PrepareProcToTrigger(AuraApplication aurApp, ProcEventInfo eventInfo, DateTime now) { bool prepare = CallScriptPrepareProcHandlers(aurApp, eventInfo);