diff --git a/Cursive.toc b/Cursive.toc index 88be5ea..8263780 100644 --- a/Cursive.toc +++ b/Cursive.toc @@ -35,6 +35,7 @@ spells\priest.lua spells\rogue.lua spells\shaman.lua spells\warlock.lua +spells\warrior.lua curses.lua filter.lua ui.lua diff --git a/Localization.lua b/Localization.lua index 8d6f288..c0fab73 100644 --- a/Localization.lua +++ b/Localization.lua @@ -183,6 +183,9 @@ L:RegisterTranslations("enUS", function() ["banish"] = true, ["siphon life"] = true, ["fear"] = true, + + -- warrior + ["rend"] = true, } end) @@ -371,5 +374,8 @@ L:RegisterTranslations("zhCN", function() ["banish"] = "放逐", ["siphon life"] = "生命虹吸", ["fear"] = "恐惧", + + -- warrior + ["rend"] = '撕裂', -- no idea if right } end) diff --git a/curses.lua b/curses.lua index f8fda36..56d6426 100644 --- a/curses.lua +++ b/curses.lua @@ -61,6 +61,8 @@ function curses:LoadCurses() curses.trackedCurseIds = getRogueSpells() elseif playerClassName == "SHAMAN" then curses.trackedCurseIds = getShamanSpells() + elseif playerClassName == "WARRIOR" then + curses.trackedCurseIds = getWarriorSpells() end -- go through spell slots and diff --git a/spells/warrior.lua b/spells/warrior.lua new file mode 100644 index 0000000..c6ba70a --- /dev/null +++ b/spells/warrior.lua @@ -0,0 +1,12 @@ +local L = AceLibrary("AceLocale-2.2"):new("Cursive") +function getWarriorSpells() + return { + [772] = { name = L["rend"], rank = 1, duration = 9 }, + [6546] = { name = L["rend"], rank = 2, duration = 12 }, + [6547] = { name = L["rend"], rank = 3, duration = 15 }, + [6548] = { name = L["rend"], rank = 4, duration = 18 }, + [11572] = { name = L["rend"], rank = 5, duration = 21 }, + [11573] = { name = L["rend"], rank = 6, duration = 21 }, + [11574] = { name = L["rend"], rank = 7, duration = 21 }, + } +end