Quantcast

Fix lua errors from Blizzard code that now expects the mission list to be a specific number of frames up the frame stack when generating tooltips instead of calling it directly by name. These tooltips haven't worked for a couple of years.

WildCard_25 [03-17-19 - 16:53]
Fix lua errors from Blizzard code that now expects the mission list to be a specific number of frames up the frame stack when generating tooltips instead of calling it directly by name. These tooltips haven't worked for a couple of years.
Filename
GarrisonCommander.lua
diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index c0280f3..795c13f 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -3050,8 +3050,6 @@ function addon:AddShipsToButton(button,mission,missionID,bigscreen)
 		local bg=CreateFrame("Button",nil,button,"GarrisonCommanderMissionButton")
 		bg:SetPoint("RIGHT")
 		bg.button=button
-		bg:SetScript("OnEnter",function(this) GarrisonMissionButton_OnEnter(this.button) end)
-		bg:SetScript("OnLeave",function() GameTooltip:FadeOut() end)
 		bg:RegisterForClicks("AnyUp")
 		bg:SetScript("OnClick",function(...) self:OnClick_GCMissionButton(...) end)
 		button.gcPANEL=bg
@@ -3067,8 +3065,6 @@ function addon:AddFollowersToButton(button,mission,missionID,bigscreen,numReward
 		local bg=CreateFrame("Button",nil,button,"GarrisonCommanderMissionButton")
 		bg:SetPoint("RIGHT")
 		bg.button=button
-		bg:SetScript("OnEnter",function(this) pcall(GarrisonMissionButton_OnEnter,this.button) end)
-		bg:SetScript("OnLeave",function() GameTooltip:FadeOut() end)
 		bg:RegisterForClicks("AnyUp")
 		bg:SetScript("OnClick",function(...) self:OnClick_GCMissionButton(...) end)
 		button.gcPANEL=bg