mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Spells: Name SpellCategoryFlags with official names and implement ResetCooldownUponEndingEncounter flag (#31415)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user