Core/Spells: added a helper to reset proc cooldowns (#22137)
This commit is contained in:
1 parent
9df082d111
commit
ae52cb5c12
2 files changed
+6
No files matched your search
@@ -1716,6 +1716,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);
|
||||
|
||||
@@ -199,6 +199,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