From 0859780f335dc579b9c4cd70b15bac850da1b37a Mon Sep 17 00:00:00 2001 From: WildCard_25 Date: Mon, 18 Mar 2019 03:36:01 +1100 Subject: [PATCH] Allow armor and weapon upgrades to be applied to inactive followers --- FollowerPage.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/FollowerPage.lua b/FollowerPage.lua index 45b5a42..4b5f393 100644 --- a/FollowerPage.lua +++ b/FollowerPage.lua @@ -151,10 +151,9 @@ function module:ShowUpgradeButtons(force) end local followerID=gf.followerID local followerInfo = followerID and G.GetFollowerInfo(followerID); --- gf.ItemWeapon.itemLevel=674 --- gf.ItemArmor.itemLevel=674 - 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 + + local canUpgrade = followerInfo and followerInfo.isCollected and gf.ItemWeapon.itemLevel + gf.ItemArmor.itemLevel < GARRISON_FOLLOWER_MAX_ITEM_LEVEL * 2 + if canUpgrade and (not followerInfo.status or followerInfo.status == GARRISON_FOLLOWER_INACTIVE) and followerInfo.isMaxLevel then ClearOverrideBindings(gf) local binded={} local currentType="" -- 1.7.9.5