From 17d16e01f0fe59d1283da097c048d7d18220a75d Mon Sep 17 00:00:00 2001 From: WildCard_25 Date: Mon, 18 Mar 2019 03:53:08 +1100 Subject: [PATCH] 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. --- GarrisonCommander.lua | 4 ---- 1 file changed, 4 deletions(-) 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 -- 1.7.9.5