From 3498a93c741fbab028176f38089ff55bb7c73759 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Thu, 23 Jul 2015 10:45:08 +0200 Subject: [PATCH] Ticket #80 Protection error in Follower Page http://wow.curseforge.com/addons/garrisoncommander/tickets/80-garrison-commander/ Signed-off-by: Alar of Daggerspine --- FollowerPage.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FollowerPage.lua b/FollowerPage.lua index f8d0be6..4434c73 100644 --- a/FollowerPage.lua +++ b/FollowerPage.lua @@ -91,8 +91,13 @@ local colors={ [645]="Epic" } function addon:ShowUpgradeButtons(force) + if InCombatLockdown() then + print("SUB") + self:ScheduleLeaveCombatAction("ShowUpgradeButtons",force) + return + end local gf=GMF.FollowerTab - if (not force and not gf:IsShown()) then return end + if (not force and not gf:IsVisible()) then return end if (not gf.showUpgrades) then gf.showUpgrades=self:GetFactory():Checkbox(gf.Model,self:GetToggle("UPG"),self:GetVarInfo("UPG")) gf.showUpgrades:SetPoint("TOPLEFT") -- 1.7.9.5