Core/Spells: Implemented SpellCategoryFlags::ResetChargesUponEndingEncounter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user