From 4e6cb5ed14e31ba0f2545a15e6d1c3c26ca59c23 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Mon, 24 Sep 2012 19:49:11 -0400 Subject: [PATCH] -Updated for Mists of Panderia patch 5.01 --- RightClickSelfCast.lua | 8 +++++--- RightClickSelfCast.toc | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/RightClickSelfCast.lua b/RightClickSelfCast.lua index abfd4f6..0425c7c 100644 --- a/RightClickSelfCast.lua +++ b/RightClickSelfCast.lua @@ -6,8 +6,8 @@ local bars = { "MultiBarBottomRight", "MultiBarRight", "MultiBarLeft", -"BonusActionBarFrame", -"ShapeshiftBarFrame", +--"BonusActionBarFrame", +--"ShapeshiftBarFrame", "PossessBarFrame", } @@ -31,7 +31,9 @@ function f:PLAYER_LOGIN() -- Blizzard bars for i, v in ipairs(bars) do local bar = _G[v] - bar:SetAttribute("unit2", "player") + if bar ~= nil then + bar:SetAttribute("unit2", "player") + end end -- this is for the mod ExtraBar (Author: Cowmonster) diff --git a/RightClickSelfCast.toc b/RightClickSelfCast.toc index 2c62989..5cf54cc 100644 --- a/RightClickSelfCast.toc +++ b/RightClickSelfCast.toc @@ -1,7 +1,7 @@ -## Interface: 40300 +## Interface: 50001 ## Title: RightClickSelfCast ## Author: Xruptor -## Version: 2.0 +## Version: 2.2 ## Notes: Makes all the Blizzard actionbars always self-cast on right-click (regardless of current target) RightClickSelfCast.lua \ No newline at end of file -- 1.7.9.5