From f9d3bcbc4f0183aeb6f417d16d1560d6020f2440 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Tue, 10 Mar 2015 23:38:44 +0100 Subject: [PATCH] No longer shows upgrades for full epic followers Signed-off-by: Alar of Daggerspine --- FollowerPage.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FollowerPage.lua b/FollowerPage.lua index 2625eb6..9182f68 100644 --- a/FollowerPage.lua +++ b/FollowerPage.lua @@ -41,7 +41,7 @@ _G.GAC=addon if LibDebug then LibDebug() end --@end-debug@ local dbg - +local GARRISON_FOLLOWER_MAX_ITEM_LEVEL=GARRISON_FOLLOWER_MAX_ITEM_LEVEL function addon:ShowImprovements() local scroller=self:GetScroller("Items") scroller:AddRow("Follower Upgrades",C.Orange()) @@ -136,7 +136,8 @@ function addon:ShowUpgradeButtons(force) end local followerID=gf.followerID local followerInfo = followerID and G.GetFollowerInfo(followerID); - if ( followerInfo and followerInfo.isCollected and not followerInfo.status and followerInfo.level == GARRISON_FOLLOWER_MAX_LEVEL ) then + local overTheTop=(gf.ItemWeapon.itemLevel + gf.ItemArmor.itemLevel) ==(GARRISON_FOLLOWER_MAX_ITEM_LEVEL *2) + if (not overTheTop and followerInfo and followerInfo.isCollected and not followerInfo.status and followerInfo.level == GARRISON_FOLLOWER_MAX_LEVEL ) then for i=1,#upgrades do if not b[used] then b[used]=CreateFrame("Button",nil,gf,"GarrisonCommanderUpgradeButton,SecureActionbuttonTemplate") -- 1.7.9.5