From baca0a1beba77e0f982983f8f3c1354c85469d5f Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 13 Oct 2008 18:18:20 +0000 Subject: [PATCH] Only specify a spell rank when the "Show all spell ranks" button is selected --- Clique.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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, -- 1.7.9.5