Ticket #80 Protection error in Follower Page
Alar of Daggerspine [07-23-15 - 08:45]
Ticket #80 Protection error in Follower Page
http://wow.curseforge.com/addons/garrisoncommander/tickets/80-garrison-commander/
Signed-off-by: Alar of Daggerspine <alar@aspide.it>
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")