From 96829560d14749e327e2b99f23fd686aac6433c8 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 31 Jul 2024 22:15:27 -0300 Subject: [PATCH] Fixed an issue with the command /keys --- Libs/LibOpenRaid/LibOpenRaid.lua | 2 +- boot.lua | 4 ++-- functions/slash.lua | 18 +++++++++++++++++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index 9f7abcba9..e4a42a52e 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -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 diff --git a/boot.lua b/boot.lua index d1bc25eac..4c30e1051 100644 --- a/boot.lua +++ b/boot.lua @@ -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 diff --git a/functions/slash.lua b/functions/slash.lua index d00ff11bf..36184d357 100644 --- a/functions/slash.lua +++ b/functions/slash.lua @@ -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() @@ -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 ""