mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Core/Spells: Set CAST_FLAG_EX_DONT_CONSUME_CHARGES for spells ignoring cds (#31686)
This commit is contained in:
@@ -534,7 +534,11 @@ m_spellValue(new SpellValue(m_spellInfo, caster)), _spellEvent(nullptr)
|
||||
m_castFlagsEx = 0;
|
||||
|
||||
if (IsIgnoringCooldowns())
|
||||
{
|
||||
m_castFlagsEx |= CAST_FLAG_EX_IGNORE_COOLDOWN;
|
||||
if (m_spellInfo->ChargeCategoryId)
|
||||
m_castFlagsEx |= CAST_FLAG_EX_DONT_CONSUME_CHARGES;
|
||||
}
|
||||
|
||||
if (_triggeredCastFlags & TRIGGERED_SUPPRESS_CASTER_ANIM)
|
||||
m_castFlagsEx |= CAST_FLAG_EX_SUPPRESS_CASTER_ANIM;
|
||||
|
||||
Reference in New Issue
Block a user