Core/Spells: Implemented SpellCategoryFlags::ResetChargesUponEndingEncounter

This commit is contained in:
luis
2026-11-18 02:15:00 -03:00
parent 59dcaa9731
commit ebad4c7545
+4
View File
@@ -631,6 +631,10 @@ void Unit::AtEndOfEncounter(EncounterType type)
return false;
}, true);
for (SpellCategoryEntry const* category : sSpellCategoryStore)
if (category->GetFlags().HasFlag(SpellCategoryFlags::ResetChargesUponEndingEncounter))
GetSpellHistory()->ResetCharges(category->ID);
}
void Unit::UpdateSplineMovement(uint32 t_diff)