From b899f3e79cb583f543ea8b5bf12657ff0ebb394f Mon Sep 17 00:00:00 2001 From: azuraji <72912613+azuraji@users.noreply.github.com> Date: Wed, 7 Dec 2022 18:49:16 +0100 Subject: [PATCH] Include header factions that have reputation in Watched Faction list --- FuBar_FuXPFu/FuBar_FuXPFu.lua | 5 +++-- FuBar_FuXPFu/FuBar_FuXPFu.toc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/FuBar_FuXPFu/FuBar_FuXPFu.lua b/FuBar_FuXPFu/FuBar_FuXPFu.lua index a7b09c6..5eb8353 100644 --- a/FuBar_FuXPFu/FuBar_FuXPFu.lua +++ b/FuBar_FuXPFu/FuBar_FuXPFu.lua @@ -101,8 +101,9 @@ function FuXP:UpdateFactionMenu() local watchedFactionID = select(6, GetWatchedFactionInfo()) for factionIndex = 1, GetNumFactions() do - local name, _, _, _, _, _, _, _, isHeader, _, _, _, _, factionID = GetFactionInfo(factionIndex) - if not isHeader then + local name, _, _, _, _, _, _, _, isHeader, _, hasRep, _, _, factionID = GetFactionInfo(factionIndex) + + if not isHeader or hasRep then if watchedFactionID == factionID then watchedFactionIndex = tostring(factionIndex) end diff --git a/FuBar_FuXPFu/FuBar_FuXPFu.toc b/FuBar_FuXPFu/FuBar_FuXPFu.toc index 8e7e773..bcce86a 100644 --- a/FuBar_FuXPFu/FuBar_FuXPFu.toc +++ b/FuBar_FuXPFu/FuBar_FuXPFu.toc @@ -4,7 +4,7 @@ ## Notes: Lightweight XP Bar ## Notes-zhCN: 迷你经验条 ## Notes-zhTW: 輕量級的經驗值條模組。 -## Version: 10.0.2.5 +## Version: 10.0.2.6 ## Author: Wobin, azuraji ## eMail: wobster@gmail.com ## X-Credits: Bant (For the design)