Skip to content

Commit

Permalink
Try the other faction if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
WFrancois committed Jun 15, 2022
1 parent 0cd8513 commit dc59848
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3368,6 +3368,11 @@ do
local mythicKeystoneProfile
if cache and cache.success and cache.mythicKeystoneProfile and not cache.mythicKeystoneProfile.blocked and cache.mythicKeystoneProfile.hasRenderableData then
mythicKeystoneProfile = cache.mythicKeystoneProfile
else
cache = provider:GetProfile(name, realm, faction == 1 and 2 or 1, region)
if cache and cache.success and cache.mythicKeystoneProfile and not cache.mythicKeystoneProfile.blocked and cache.mythicKeystoneProfile.hasRenderableData then
mythicKeystoneProfile = cache.mythicKeystoneProfile
end
end
if not mythicKeystoneProfile then
mythicKeystoneProfile = CreateEmptyMythicKeystoneData()
Expand Down

0 comments on commit dc59848

Please sign in to comment.