mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Implement CAST_FLAG_EX_IGNORE_COOLDOWN - causes spells to not automatically trigger cooldown clientside (#27717)
This commit is contained in:
@@ -570,6 +570,9 @@ m_spellValue(new SpellValue(m_spellInfo, caster)), _spellEvent(nullptr)
|
||||
m_castItemLevel = -1;
|
||||
m_castFlagsEx = 0;
|
||||
|
||||
if (IsIgnoringCooldowns())
|
||||
m_castFlagsEx |= CAST_FLAG_EX_IGNORE_COOLDOWN;
|
||||
|
||||
unitTarget = nullptr;
|
||||
itemTarget = nullptr;
|
||||
gameObjTarget = nullptr;
|
||||
|
||||
@@ -120,7 +120,7 @@ enum SpellCastFlagsEx
|
||||
CAST_FLAG_EX_UNKNOWN_7 = 0x00040,
|
||||
CAST_FLAG_EX_UNKNOWN_8 = 0x00080,
|
||||
CAST_FLAG_EX_UNKNOWN_9 = 0x00100,
|
||||
CAST_FLAG_EX_UNKNOWN_10 = 0x00200,
|
||||
CAST_FLAG_EX_IGNORE_COOLDOWN = 0x00200, // makes client not automatically start cooldown after SPELL_GO
|
||||
CAST_FLAG_EX_UNKNOWN_11 = 0x00400,
|
||||
CAST_FLAG_EX_UNKNOWN_12 = 0x00800,
|
||||
CAST_FLAG_EX_UNKNOWN_13 = 0x01000,
|
||||
|
||||
Reference in New Issue
Block a user