Core/Achievements: Implemented criteria flag "Reset on Start" and removed manual script workarounds for it

This commit is contained in:
Shauren
2022-04-24 12:36:28 +02:00
parent 111fc6ac6f
commit e1abd8256b
18 changed files with 4 additions and 37 deletions

View File

@@ -631,15 +631,6 @@ void InstanceScript::DoStartCriteriaTimer(CriteriaStartEvent startEvent, uint32
});
}
// Stop timed achievement for all players in instance
void InstanceScript::DoStopCriteriaTimer(CriteriaStartEvent startEvent, uint32 entry)
{
instance->DoOnPlayers([startEvent, entry](Player* player)
{
player->RemoveCriteriaTimer(startEvent, entry);
});
}
void InstanceScript::DoRemoveAurasDueToSpellOnPlayers(uint32 spell, bool includePets /*= false*/, bool includeControlled /*= false*/)
{
instance->DoOnPlayers([this, spell, includePets, includeControlled](Player* player)