Core/Spells: added a helper to reset proc cooldowns (#22137)

(cherry picked from commit c48a596c66)
This commit is contained in:
Ovah
2018-07-29 18:49:13 +02:00
committed by Shauren
parent c079759291
commit 7084e0c360
2 changed files with 6 additions and 0 deletions

View File

@@ -1721,6 +1721,11 @@ void Aura::AddProcCooldown(std::chrono::steady_clock::time_point cooldownEnd)
m_procCooldown = cooldownEnd;
}
void Aura::ResetProcCooldown()
{
m_procCooldown = std::chrono::steady_clock::now();
}
void Aura::PrepareProcToTrigger(AuraApplication* aurApp, ProcEventInfo& eventInfo, std::chrono::steady_clock::time_point now)
{
bool prepare = CallScriptPrepareProcHandlers(aurApp, eventInfo);

View File

@@ -244,6 +244,7 @@ class TC_GAME_API Aura
bool IsProcOnCooldown(std::chrono::steady_clock::time_point now) const;
void AddProcCooldown(std::chrono::steady_clock::time_point cooldownEnd);
void ResetProcCooldown();
bool IsUsingCharges() const { return m_isUsingCharges; }
void SetUsingCharges(bool val) { m_isUsingCharges = val; }
void PrepareProcToTrigger(AuraApplication* aurApp, ProcEventInfo& eventInfo, std::chrono::steady_clock::time_point now);