Quantcast

Use existing boolean for test

WildCard_25 [03-17-19 - 16:41]
Use existing boolean for test
Filename
GarrisonCommander.lua
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))