Skip to content

Commit

Permalink
Handle friend reputations - first version
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoRogai committed Nov 26, 2024
1 parent 4e2f006 commit 1529f3f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion RepHub.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,16 @@ function RepHub:RefreshReputationGlobalDB()
}
end

self.db.global.reputationList[factionData.factionID].standings[characterName] = factionData.currentStanding
local currentStanding = factionData.currentStanding

if not factionData.isAccountWide then
local friendshipReputationData = C_GossipInfo.GetFriendshipReputation(factionData.factionID)
if friendshipReputationData and friendshipReputationData.friendshipFactionID ~= 0 then
currentStanding = friendshipReputationData.standing
end
end

self.db.global.reputationList[factionData.factionID].standings[characterName] = currentStanding

factionIndex = factionIndex + 1
end
Expand Down

0 comments on commit 1529f3f

Please sign in to comment.