Core/Spells: Implement CAST_FLAG_EX_IGNORE_COOLDOWN - causes spells to not automatically trigger cooldown clientside (#27717)

This commit is contained in:
Seyden
2022-02-07 21:25:27 +01:00
committed by GitHub
parent d22d461633
commit 66509502f4
2 changed files with 4 additions and 1 deletions

View File

@@ -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;

View File

@@ -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,