Skip to content

Commit

Permalink
Include header factions that have reputation in Watched Faction list
Browse files Browse the repository at this point in the history
  • Loading branch information
azuraji committed Dec 7, 2022
1 parent a663ee3 commit b899f3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions FuBar_FuXPFu/FuBar_FuXPFu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion FuBar_FuXPFu/FuBar_FuXPFu.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
## X-Credits: Bant (For the design)
Expand Down

0 comments on commit b899f3e

Please sign in to comment.