-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathenums.lua
More file actions
38 lines (36 loc) · 822 Bytes
/
enums.lua
File metadata and controls
38 lines (36 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
local _, ns = ...
local oUF = ns.oUF
-- we have to do this until Blizzard decides to add an Enum
oUF.Enum = {}
oUF.Enum.DispelType = {
-- https://wago.tools/db2/SpellDispelType
None = 0,
Magic = 1,
Curse = 2,
Disease = 3,
Poison = 4,
Enrage = 9,
Bleed = 11,
}
oUF.Enum.SelectionType = {
-- https://warcraft.wiki.gg/wiki/API_UnitSelectionType
-- only keeping the useful ones (i.e. no spectator or housing stuff)
Hostile = 0,
Unfriendly = 1,
Neutral = 2,
Friendly = 3,
PlayerSimple = 4,
PlayerExtended = 5,
Party = 6,
PartyPvP = 7,
Friend = 8,
Dead = 9,
-- CommentatorBattleground1 = 10,
-- CommentatorBattleground2 = 11,
-- Self = 12,
PartyPvPInBattleground = 13,
-- CommentatorArena1 = 14,
-- CommentatorArena2 = 15,
RecentAlly = 16,
-- rest of the types are for housing, irrelevant for us
}