Quantcast

Add support for Demon Hunter

Jim Whitehead [08-10-16 - 19:50]
Add support for Demon Hunter
Filename
Config.lua
PerfectRaid_Buffs.lua
PerfectRaid_Frames.lua
diff --git a/Config.lua b/Config.lua
index dacab1d..2f8a4d1 100644
--- a/Config.lua
+++ b/Config.lua
@@ -112,7 +112,7 @@ options.args.highlight = {
 				},
 			},
 		},
-	},
+	},
 } -- end highlight

 options.args.range = {
@@ -146,7 +146,7 @@ local function getFrameArgs()
 			type = "description",
 			name = L["From here you can configure the options for a display frame, including what units it displays and other options that change the look, feel and operation of the frame."],
 		},
-
+
 		filters = {
 			type = "group",
 			name = L["Filters"],
@@ -168,6 +168,7 @@ local function getFrameArgs()
 						ROGUE = L["Rogue"],
 						WARLOCK = L["Warlock"],
 						HUNTER = L["Hunter"],
+                        DEMONHUNTER = L["Demon Hunter"],
 					}
 				},
 				groups = {
@@ -316,7 +317,7 @@ local function getFrameArgs()
 						},
 					},
 				}, -- end sorting
-			},
+			},
 		}, -- end groupsort

 		columns = {
@@ -339,7 +340,7 @@ local function getFrameArgs()
 					type = "input",
 					name = L["Number of units per column"],
 					validate = function(info, value)
-						if value and not tonumber(value) then
+						if value and not tonumber(value) then
 							return L["Number of units per column must be a number, or nil"]
 						end
 						return true
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index 313849d..8d587c0 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -1014,6 +1014,7 @@ Buffs.conditions = {
 	["Death Knight"] = function(u,c,g) return c == "DEATHKNIGHT" end,
 	["Monk"] = function(u,c,g) return c == "MONK" end,
 	["Priest"] = function(u,c,g) return c == "PRIEST" end,
+	["Demon Hunter"] = function(u,c,g) return c == "DEMONHUNTER" end,
 	["Druid"] = function(u,c,g) return c == "DRUID" end,
 	["Paladin"] = function(u,c,g) return c == "PALADIN" end,
 	["Shaman"] = function(u,c,g) return c == "SHAMAN" end,
diff --git a/PerfectRaid_Frames.lua b/PerfectRaid_Frames.lua
index 083fa56..a2b9a03 100644
--- a/PerfectRaid_Frames.lua
+++ b/PerfectRaid_Frames.lua
@@ -59,7 +59,7 @@ function Frames:DONGLE_PROFILE_CREATED(event, db, addon, svname, profileKey)
 		sortType = "NAME",
 		deficit = 1,
 		colAnchor = "LEFT",
-		filter = "WARRIOR,DEATHKNIGHT,PRIEST,DRUID,SHAMAN,PALADIN,MONK,MAGE,ROGUE,WARLOCK,HUNTER",
+		filter = "WARRIOR,DEATHKNIGHT,PRIEST,DRUID,SHAMAN,PALADIN,MONK,MAGE,ROGUE,WARLOCK,HUNTER,DEMONHUNTER",
 		groupBy = "CLASS",
 		maxUnits = 25,
 	}
@@ -256,6 +256,7 @@ function Frames:CreateEditFrame(parent)
 	makeCheck(L["Rogue"], "ROGUE")
 	makeCheck(L["Warlock"], "WARLOCK")
 	makeCheck(L["Hunter"], "HUNTER")
+    makeCheck(L["Demon Hunter"], "DEMONHUNTER")
 	makeCheck(L["Group 1"], "1")
 	makeCheck(L["Group 2"], "2")
 	makeCheck(L["Group 3"], "3")
@@ -264,7 +265,7 @@ function Frames:CreateEditFrame(parent)
 	makeCheck(L["Group 6"], "6")
 	makeCheck(L["Group 7"], "7")
 	makeCheck(L["Group 8"], "8")
-	makeCheck(L["All Classes"], "WARRIOR,DEATHKNIGHT,PRIEST,DRUID,SHAMAN,PALADIN,MONK,MAGE,ROGUE,WARLOCK,HUNTER")
+	makeCheck(L["All Classes"], "WARRIOR,DEATHKNIGHT,PRIEST,DRUID,SHAMAN,PALADIN,MONK,MAGE,ROGUE,WARLOCK,HUNTER,DEMONHUNTER")
 	makeCheck(L["All Groups"], "1,2,3,4,5,6,7,8")
 	makeCheck(L["Main tanks"], "MAINTANK")
 	makeCheck(L["Main assists"], "MAINASSIST")