Core/Achievements: Optimized resetting achievement criteria by condition and changed the functionality to properly reset all possible criteria with given condition

Port From (https://github.com/TrinityCore/TrinityCore/commit/6f7ff9a3efd10cd4f776a67540109e7bb774f1c5)
This commit is contained in:
hondacrx
2020-05-06 17:52:14 -04:00
parent 4f6447cc0b
commit 43fcc558e4
8 changed files with 53 additions and 46 deletions
@@ -91,11 +91,15 @@ namespace Framework.Constants
Unk2 = 2,
BgMap = 3,
NoLose = 4,
Unk5 = 5,
Unk8 = 8,
RemoveAura = 5,
CastSpell = 8,
NoSpellHit = 9,
NotInGroup = 10,
Unk13 = 13
LostPetBattle = 11,
Unk13 = 13,
Event = 14,
Max
}
public enum CriteriaAdditionalCondition