Core/Criteria: Add all values of CriteriaFailEvent

Port From (https://github.com/TrinityCore/TrinityCore/commit/4b6ddfbbccf7dade8292331c860209f45945fa00)
This commit is contained in:
hondacrx
2021-06-04 13:59:21 -04:00
parent 9621a951f4
commit 93f8c09364
8 changed files with 43 additions and 40 deletions
+21 -18
View File
@@ -84,24 +84,6 @@ namespace Framework.Constants
QuestObjective = 0x10
}
public enum CriteriaCondition
{
None = 0,
NoDeath = 1,
Unk2 = 2,
BgMap = 3,
NoLose = 4,
RemoveAura = 5,
CastSpell = 8,
NoSpellHit = 9,
NotInGroup = 10,
LostPetBattle = 11,
Unk13 = 13,
Event = 14,
Max
}
public enum CriteriaAdditionalCondition
{
SourceDrunkValue = 1,
@@ -417,6 +399,27 @@ namespace Framework.Constants
SourceFlying = 311,
}
public enum CriteriaFailEvent : byte
{
None = 0,
Death = 1, // Death
Hours24WithoutCompletingDailyQuest = 2, // 24 hours without completing a daily quest
LeaveBattleground = 3, // Leave a battleground
LoseRankedArenaMatchWithTeamSize = 4, // Lose a ranked arena match with team size {#Team Size}
LoseAura = 5, // Lose aura "{Spell}"
GainAura = 6, // Gain aura "{Spell}"
GainAuraEffect = 7, // Gain aura effect "{SpellAuraNames.EnumID}"
CastSpell = 8, // Cast spell "{Spell}"
BeSpellTarget = 9, // Have spell "{Spell}" cast on you
ModifyPartyStatus = 10, // Modify your party status
LosePetBattle = 11, // Lose a pet battle
BattlePetDies = 12, // Battle pet dies
DailyQuestsCleared = 13, // Daily quests cleared
SendEvent = 14, // Send event "{GameEvents}" (player-sent/instance only)
Max
}
public enum CriteriaFlags
{
ShowProgressBar = 0x01,