Skip to content

Commit

Permalink
Fixed an issue with the command /keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Aug 1, 2024
1 parent a24c1ac commit 9682956
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Libs/LibOpenRaid/LibOpenRaid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2642,7 +2642,7 @@ openRaidLib.commHandler.RegisterComm(CONST_COMM_COOLDOWNREQUEST_PREFIX, openRaid

function openRaidLib.KeystoneInfoManager.UpdatePlayerKeystoneInfo(keystoneInfo)
keystoneInfo.level = C_MythicPlus.GetOwnedKeystoneLevel() or 0
keystoneInfo.mapID = C_MythicPlus.GetOwnedKeystoneMapID() or 0
keystoneInfo.mapID = C_MythicPlus.GetOwnedKeystoneMapID() or 0 --returning nil?
keystoneInfo.mythicPlusMapID = getMythicPlusMapID() or 0
keystoneInfo.challengeMapID = C_MythicPlus.GetOwnedKeystoneChallengeMapID() or 0

Expand Down
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
local addonName, Details222 = ...
local version, build, date, tvs = GetBuildInfo()

Details.build_counter = 12823
Details.alpha_build_counter = 12823 --if this is higher than the regular counter, use it instead
Details.build_counter = 12824
Details.alpha_build_counter = 12824 --if this is higher than the regular counter, use it instead
Details.dont_open_news = true
Details.game_version = version
Details.userversion = version .. " " .. Details.build_counter
Expand Down
18 changes: 17 additions & 1 deletion functions/slash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,17 @@ if (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then
newData.offlineGuildPlayers = {}
local keystoneData = openRaidLib.GetAllKeystonesInfo()

--[=[
["Exudragão"] = {
["mapID"] = 2526,
["challengeMapID"] = 402,
["mythicPlusMapID"] = 0,
["rating"] = 215,
["classID"] = 13,
["level"] = 6,
},
--]=]

local guildUsers = {}
local totalMembers, onlineMembers, onlineAndMobileMembers = GetNumGuildMembers()

Expand Down Expand Up @@ -2257,7 +2268,12 @@ if (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then
local coords = CLASS_ICON_TCOORDS
local _, class = GetClassInfo(classId)

local mapName = C_ChallengeMode.GetMapUIInfo(keystoneInfo.mythicPlusMapID) or ""
local mapName = C_ChallengeMode.GetMapUIInfo(keystoneInfo.mythicPlusMapID)
if (not mapName) then
mapName = C_ChallengeMode.GetMapUIInfo(keystoneInfo.challengeMapID)
end

mapName = mapName or "map name not found"

--local mapInfoChallenge = C_Map.GetMapInfo(keystoneInfo.challengeMapID)
--local mapNameChallenge = mapInfoChallenge and mapInfoChallenge.name or ""
Expand Down

0 comments on commit 9682956

Please sign in to comment.