From 76b487b7dfb2c3f89dc02ba823580d39972539c8 Mon Sep 17 00:00:00 2001 From: WildCard_25 Date: Mon, 18 Mar 2019 03:41:49 +1100 Subject: [PATCH] Use existing boolean for test --- GarrisonCommander.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua index 46bf130..612a001 100644 --- a/GarrisonCommander.lua +++ b/GarrisonCommander.lua @@ -1318,7 +1318,7 @@ function addon:RenderFollowerPageFollowerButton(frame,follower,showCounters) frame.GCXp:Hide() end if self:GetToggle("ILV") then - if (follower.level >= GARRISON_FOLLOWER_MAX_LEVEL) then + if follower.isMaxLevel then local c1=ITEM_QUALITY_COLORS[self:GetAnyData(follower.followerTypeID,follower.followerID,"weaponQuality" ,1)] local c2=ITEM_QUALITY_COLORS[self:GetAnyData(follower.followerTypeID,follower.followerID,"armorQuality" ,1)] frame.GCWep:SetFormattedText("W:%3d",self:GetAnyData(follower.followerTypeID,follower.followerID,"weaponItemLevel",600)) -- 1.7.9.5