Re-implemented Right-Click self-casting

This commit is contained in:
Hendrik Leppkes
2008-09-28 15:02:23 +02:00
parent 8a78292d77
commit 93ad63a772
4 changed files with 13 additions and 22 deletions
+9
View File
@@ -262,6 +262,15 @@ function Button:RefreshStateAction(state)
end
end
end
self:UpdateRightClickSelfCast()
end
function Button:UpdateRightClickSelfCast()
if Bartender4.db.profile.selfcastrightclick then
self:SetAttribute("unit2", "player")
else
self:SetAttribute("unit2", nil)
end
end
function Button:CalculateAction()