![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Simulates the proc chain guard logic from Unit::TriggerAurasProcOnEvent. More...
#include "ProcChanceTestHelper.h"
Classes | |
| struct | AuraConfig |
| struct | ProcRecord |
Public Member Functions | |
| ProcChainGuardSimulator () | |
| void | SimulateTriggerAurasProc (bool triggeringSpellHasDisallowProcEvents, std::vector< AuraConfig > const &auras) |
| Simulate Unit::TriggerAurasProcOnEvent. | |
| std::vector< ProcRecord > const & | GetRecords () const |
| int32 | GetProcDeep () const |
| bool | CanProc () const |
Private Member Functions | |
| void | SetCantProc (bool apply) |
Private Attributes | |
| int32 | _procDeep |
| std::vector< ProcRecord > | _records |
Simulates the proc chain guard logic from Unit::TriggerAurasProcOnEvent.
Tracks the m_procDeep counter to verify that:
|
inline |
|
inline |
|
inline |
|
inline |
References _records.
|
inlineprivate |
References _procDeep.
Referenced by SimulateTriggerAurasProc().
|
inline |
Simulate Unit::TriggerAurasProcOnEvent.
| triggeringSpellHasDisallowProcEvents | Whether the triggering spell has TRIGGERED_DISALLOW_PROC_EVENTS cast flag |
| auras | List of auras in the proc container |
References _procDeep, _records, CanProc(), and SetCantProc().
Referenced by TEST_F().
|
private |
Referenced by CanProc(), GetProcDeep(), SetCantProc(), and SimulateTriggerAurasProc().
|
private |
Referenced by GetRecords(), and SimulateTriggerAurasProc().