Quantcast

Only specify a spell rank when the "Show all spell ranks" button is selected

James Whitehead II [10-13-08 - 18:18]
Only specify a spell rank when the "Show all spell ranks" button is selected
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index cb7efa8..4f5d98e 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -124,6 +124,7 @@ function Clique:EnableFrames()
 		PartyMemberFrame4PetFrame,
 		TargetFrame,
 		TargetofTargetFrame,
+		FocusFrame,
     }

     for i,frame in pairs(tbl) do
@@ -150,7 +151,12 @@ function Clique:SpellBookButtonPressed(frame, button)
 	else
 		button = self:GetButtonNumber(button)
 	end
-
+
+	-- Clear the rank if "Show all spell ranks" is selected
+	if not GetCVarBool("ShowAllSpellRanks") then
+		rank = nil
+	end
+
     -- Build the structure
     local t = {
 		["button"] = button,