From 7750e1fdcdcb5ae3c9470e89dba608be1505cd2f Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 7 Jun 2024 13:32:24 -0300 Subject: [PATCH] Fixed an issue with Cataclysm classic not having the "ENCOUNTER_LOOT_RECEIVED" event. --- boot.lua | 4 ++-- frames/window_mythicplus/window_end_of_run.lua | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/boot.lua b/boot.lua index 8780f3152..0bf6ad4dc 100644 --- a/boot.lua +++ b/boot.lua @@ -17,8 +17,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - Details.build_counter = 12800 - Details.alpha_build_counter = 12800 --if this is higher than the regular counter, use it instead + Details.build_counter = 12801 + Details.alpha_build_counter = 12801 --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/frames/window_mythicplus/window_end_of_run.lua b/frames/window_mythicplus/window_end_of_run.lua index 475a2e960..31e4e1933 100644 --- a/frames/window_mythicplus/window_end_of_run.lua +++ b/frames/window_mythicplus/window_end_of_run.lua @@ -84,7 +84,10 @@ _G.MythicDungeonFrames = mythicDungeonFrames --frame to handle loot events local lootFrame = CreateFrame("frame", "DetailsEndOfMythicLootFrame", UIParent) lootFrame:RegisterEvent("BOSS_KILL") -lootFrame:RegisterEvent("ENCOUNTER_LOOT_RECEIVED") + +if (C_EventUtils.IsEventValid("ENCOUNTER_LOOT_RECEIVED")) then + lootFrame:RegisterEvent("ENCOUNTER_LOOT_RECEIVED") +end --register the loot players looted at the end of the mythic dungeon lootFrame.LootCache = {}