Core/Spells: Set CAST_FLAG_EX_DONT_CONSUME_CHARGES for spells ignoring cds (#31686)

This commit is contained in:
Cristian Vintila
2026-02-27 15:02:21 +02:00
committed by GitHub
parent dd416b9e9a
commit 6da8e45580

View File

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