Core/Spells: Name SpellCategoryFlags with official names and implement ResetCooldownUponEndingEncounter flag (#31415)

This commit is contained in:
Aqua Deus
2025-10-29 16:04:11 +01:00
committed by GitHub
parent cca05feeb4
commit ff256d20e5
5 changed files with 24 additions and 10 deletions

View File

@@ -1763,7 +1763,7 @@ bool SpellInfo::IsCooldownStartedOnEvent() const
return true;
SpellCategoryEntry const* category = sSpellCategoryStore.LookupEntry(CategoryId);
return category && category->Flags & SPELL_CATEGORY_FLAG_COOLDOWN_STARTS_ON_EVENT;
return category && category->GetFlags().HasFlag(SpellCategoryFlags::CooldownEventOnLeaveCombat);
}
bool SpellInfo::IsDeathPersistent() const