* Update to fix issues with TargetUnit and other attributes
James Whitehead II [09-25-07 - 22:32]
* Update to fix issues with TargetUnit and other attributes
diff --git a/Clique.lua b/Clique.lua
index 064b58a..7b54731 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -401,11 +401,11 @@ function Clique:SetAttribute(entry, frame)
elseif entry.type == "action" then
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
frame:SetAttribute(entry.modifier.."action"..button, entry.arg1)
- frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2)
+ frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2 or "mouseover")
elseif entry.type == "pet" then
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
frame:SetAttribute(entry.modifier.."action"..button, entry.arg1)
- frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2)
+ frame:SetAttribute(entry.modifier.."unit"..button, entry.arg2 or "mouseover")
elseif entry.type == "spell" then
local rank = tonumber(entry.arg2)
local cast = string.format(rank and L.CAST_FORMAT or "%s", entry.arg1, rank)
@@ -421,7 +421,7 @@ function Clique:SetAttribute(entry, frame)
frame:SetAttribute(entry.modifier.."bag"..button, entry.arg1)
frame:SetAttribute(entry.modifier.."slot"..button, entry.arg2)
frame:SetAttribute(entry.modifier.."item"..button, entry.arg3)
- frame:SetAttribute(entry.modifier.."unit"..button, entry.arg4)
+ frame:SetAttribute(entry.modifier.."unit"..button, entry.arg4 or "mouseover")
elseif entry.type == "macro" then
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
if entry.arg1 then
@@ -440,13 +440,13 @@ function Clique:SetAttribute(entry, frame)
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
elseif entry.type == "target" then
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
- frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1)
+ frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1 or "mouseover")
elseif entry.type == "focus" then
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
- frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1)
+ frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1 or "mouseover")
elseif entry.type == "assist" then
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
- frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1)
+ frame:SetAttribute(entry.modifier.."unit"..button, entry.arg1 or "mouseover")
elseif entry.type == "click" then
frame:SetAttribute(entry.modifier.."type"..button, entry.type)
frame:SetAttribute(entry.modifier.."clickbutton"..button, getglobal(entry.arg1))