Core/Spells: added a helper to reset proc cooldowns

Port From (https://github.com/TrinityCore/TrinityCore/commit/7084e0c3601cef86d01d2162c77623feef9fc8f2)
This commit is contained in:
hondacrx
2021-10-17 16:58:00 -04:00
parent 7a41c9bd3d
commit 78421960db
+5
View File
@@ -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);