Quantcast

Issues with Git Repositories v2.7 Resolved

Xruptor [01-15-16 - 13:51]
Issues with Git Repositories v2.7 Resolved

There was an issue with some of the repositories where the initial Push didn't complete correctly.  This has been resolved.  V2.7 should be the latest update.
Filename
RightClickSelfCast.lua
RightClickSelfCast.toc
diff --git a/RightClickSelfCast.lua b/RightClickSelfCast.lua
index b004cc5..77d29a6 100644
--- a/RightClickSelfCast.lua
+++ b/RightClickSelfCast.lua
@@ -36,6 +36,27 @@ function f:PLAYER_LOGIN()
 		end
 	end

+	-- ElvUI (Author: Elv22, TukUI fork)
+	-- https://www.tukui.org/about.php?ui=elvui
+	-- Since there are so many different forks/modifications of ElvUI out there.  Just do it without using IsAddOnLoaded()
+	local barID = 1
+	while _G["ElvUI_Bar"..barID] do
+		for	_,button in next,_G["ElvUI_Bar"..barID].buttons,nil do
+			button:SetAttribute("unit2", "player")
+		end
+		barID = barID+1
+	end
+
+	-- Tukui (Author: Elv22, TukUI fork)
+	-- https://www.tukui.org
+	-- Since there are so many different forks/modifications of Tukui out there.  Just do it without using IsAddOnLoaded()
+	for id=1, 12 do
+		local button = _G["ActionButton"..id]
+		if button ~= nil then
+			button:SetAttribute("unit2", "player")
+		end
+	end
+
 	-- this is for the mod ExtraBar (Author: Cowmonster)
 	-- http://www.wowinterface.com/downloads/info14492-ExtraBar.html
 	if IsAddOnLoaded('ExtraBar') then
@@ -64,28 +85,6 @@ function f:PLAYER_LOGIN()
 		end
 	end

-	-- ElvUI (Author: Elv22, TukUI fork)
-	-- https://www.tukui.org/about.php?ui=elvui
-	-- Since there are so many different forks/modifications of ElvUI out there.  Just do it without using IsAddOnLoaded()
-	local barID = 1
-	while _G["ElvUI_Bar"..barID] do
-		for	_,button in next,_G["ElvUI_Bar"..barID].buttons,nil do
-			button:SetAttribute("unit2", "player")
-		end
-		barID = barID+1
-	end
-
-	-- Tukui (Author: Elv22, TukUI fork)
-	-- https://www.tukui.org
-	-- Since there are so many different forks/modifications of Tukui out there.  Just do it without using IsAddOnLoaded()
-	for id=1, 12 do
-		local button = _G["ActionButton"..id]
-		if button ~= nil then
-			button:SetAttribute("unit2", "player")
-		end
-	end
-
-
 	self:UnregisterEvent("PLAYER_LOGIN")
 	self.PLAYER_LOGIN = nil

diff --git a/RightClickSelfCast.toc b/RightClickSelfCast.toc
index 8bc3fc6..8b0be0d 100644
--- a/RightClickSelfCast.toc
+++ b/RightClickSelfCast.toc
@@ -1,7 +1,7 @@
 ## Interface: 60200
 ## Title: RightClickSelfCast
 ## Author: Xruptor
-## Version:  2.6
+## Version:  2.7
 ## Notes: Makes all the Blizzard actionbars always self-cast on right-click (regardless of current target)

 RightClickSelfCast.lua
\ No newline at end of file