Core/Spells: added and updated SpellCategoryFlags and implemented SpellCategoryFlags::CooldownInDays

This commit is contained in:
Ovahlord committed 2021-03-25 17:10:51 +01:00
1 parent 83298b52a2
commit 6301a324cd
6 files changed
+18 -30

No files matched your search

+1 -1
View File
@@ -1377,7 +1377,7 @@ bool SpellInfo::IsCooldownStartedOnEvent() const
if (HasAttribute(SPELL_ATTR0_DISABLED_WHILE_ACTIVE))
return true;
return CategoryEntry && CategoryEntry->Flags & SPELL_CATEGORY_FLAG_COOLDOWN_STARTS_ON_EVENT;
return CategoryEntry && CategoryEntry->GetFlags().HasFlag(SpellCategoryFlags::CooldownEventOnLeaveCombat);
}
bool SpellInfo::IsDeathPersistent() const