mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Spells: added a helper to reset proc cooldowns (#22137)
(cherry picked from commit c48a596c66)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user