From af85f1b08c1c4f6557b88a6867f5a38cb2967458 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 19 Oct 2019 10:40:53 +0200 Subject: [PATCH] player: fix dropdown menu on tbc --- modules/player.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/player.lua b/modules/player.lua index 8bdf2867..3343b8fb 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -20,7 +20,11 @@ pfUI:RegisterModule("player", "vanilla:tbc", function () -- Replace default's RESET_INSTANCES button with an always working one UnitPopupButtons["RESET_INSTANCES_FIX"] = { text = RESET_INSTANCES, dist = 0 }; - UnitPopupMenus["SELF"] = { "LOOT_METHOD", "LOOT_THRESHOLD", "LOOT_PROMOTE", "LEAVE", "RESET_INSTANCES_FIX", "RAID_TARGET_ICON", "CANCEL" }; + for id, text in pairs(UnitPopupMenus["SELF"]) do + if text == "RESET_INSTANCES" then + UnitPopupMenus["SELF"][id] = "RESET_INSTANCES_FIX" + end + end hooksecurefunc("UnitPopup_OnClick", function() local button = this.value