From 7947e1b659dfd64fd6b31ddf921ff68849295f55 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 13 Oct 2010 17:25:12 +0100 Subject: [PATCH] Give out-of-combat clicks priority This does not fix the bug arising from conflicts between 'ooc' and 'friend' clicks. That will come in a future update. --- Clique.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Clique.lua b/Clique.lua index a5ddfc9..a3d8ed9 100755 --- a/Clique.lua +++ b/Clique.lua @@ -262,6 +262,15 @@ local function ApplicationOrder(a, b) local acnt, bcnt = 0, 0 for k,v in pairs(a.sets) do acnt = acnt + 1 end for k,v in pairs(b.sets) do bcnt = bcnt + 1 end + + -- Force out-of-combat clicks to take the HIGHEST priority + if a.sets.ooc and not b.sets.ooc then + return false + elseif a.sets.ooc and b.sets.ooc then + return bcnt < acnt + end + + -- Try to give any 'default' clicks LOWEST priority if a.sets.default and not b.sets.default then return true elseif a.sets.default and b.sets.default then -- 1.7.9.5