Skip to content

Commit

Permalink
Add DK support (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
SammyJames authored Sep 19, 2022
1 parent ad42c5e commit 8e242c2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
38 changes: 37 additions & 1 deletion Code/Triggers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ local cooldowns = {}
local defaultTriggers = {
[1001] = [[{
name = L["Low Health!"],
class = "DRUID;HUNTER;MAGE;PALADIN;PRIEST;ROGUE;SHAMAN;WARLOCK;WARRIOR",
class = "DRUID;HUNTER;MAGE;PALADIN;PRIEST;ROGUE;SHAMAN;WARLOCK;WARRIOR;DEATHKNIGHT",
conditions = {
["Unit health"] = {
{
Expand Down Expand Up @@ -187,6 +187,41 @@ local defaultTriggers = {
sticky = true,
color = "1e90ff",
}]],
[1017] = [[{
-- Rime
name = L["%s!"]:format(GetSpellInfo(59052)),
icon = 59052,
class = "DEATHKNIGHT",
conditions = {
["Aura gain"] = {
[1] = {
spell = GetSpellInfo(59052),
unit = "player",
auraType = "BUFF",
},
},
},
sticky = true,
color = "0000ff",
}]],
[1018] = [[{
-- Killing Machine
name = L["%s!"]:format(GetSpellInfo(51124)),
icon = 51124,
class = "DEATHKNIGHT",
conditions = {
["Aura gain"] = {
[1] = {
spell = GetSpellInfo(51124),
unit = "player",
auraType = "BUFF",
},
},
},
sticky = true,
color = "0000ff",
}]],

}
-- start new entries at 1008

Expand Down Expand Up @@ -747,6 +782,7 @@ function module:OnOptionsCreate()
SHAMAN = LC["SHAMAN"],
WARLOCK = LC["WARLOCK"],
WARRIOR = LC["WARRIOR"],
DEATHKNIGHT = LC["DEATHKNIGHT"],
}

local function getConditionValue(info)
Expand Down
2 changes: 2 additions & 0 deletions Data/CombatEvents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ local PowerTypeParser = {
[2] = _G.FOCUS,
[3] = _G.ENERGY,
[4] = _G.HAPPINESS,
[5] = _G.RUNES,
[6] = _G.RUNIC_POWER,
[14] = _G.COMBO_POINTS,
}

Expand Down
2 changes: 2 additions & 0 deletions Data/TriggerConditions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ local powerTypeChoices = {
[2] = _G.FOCUS,
[3] = _G.ENERGY,
[4] = _G.HAPPINESS,
[5] = _G.RUNES,
[6] = _G.RUNIC_POWER,
[14] = _G.COMBO_POINTS,
}

Expand Down

0 comments on commit 8e242c2

Please sign in to comment.