feat(Core/Spell): Add helper for TriggeredCastFlag (#18227)

* feat(Core/Spell): Add helper for TriggeredCastFlag

* Lol

* fix build
This commit is contained in:
Kitzunu
2024-01-26 13:51:42 +01:00
committed by GitHub
parent c18bd64136
commit 69dc8804e6
2 changed files with 35 additions and 34 deletions

View File

@@ -549,7 +549,8 @@ public:
void SetAutoRepeat(bool rep) { m_autoRepeat = rep; }
void ReSetTimer() { m_timer = m_casttime > 0 ? m_casttime : 0; }
bool IsNextMeleeSwingSpell() const;
bool IsTriggered() const { return _triggeredCastFlags & TRIGGERED_FULL_MASK; };
bool IsTriggered() const { return HasTriggeredCastFlag(TRIGGERED_FULL_MASK); };
bool HasTriggeredCastFlag(TriggerCastFlags flag) const { return _triggeredCastFlags & flag; };
bool IsChannelActive() const { return m_caster->GetUInt32Value(UNIT_CHANNEL_SPELL) != 0; }
bool IsAutoActionResetSpell() const;
bool IsIgnoringCooldowns() const;