From 602a6fa0fd4cb189ce5d50e2ca6b0f6a2d35d6bc Mon Sep 17 00:00:00 2001 From: urnati Date: Sun, 10 Aug 2025 11:42:02 -0400 Subject: [PATCH] - Update LootType to fix API change to GetLootMethod, retail only --- TitanLootType/TitanLootType.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/TitanLootType/TitanLootType.lua b/TitanLootType/TitanLootType.lua index 20b02d6..76968ec 100644 --- a/TitanLootType/TitanLootType.lua +++ b/TitanLootType/TitanLootType.lua @@ -27,6 +27,12 @@ local loot_spec_name = "" local current_spec = "" -- ******************************** Functions ******************************* +local LootMethod = nil +if C_PartyInfo and C_PartyInfo.GetLootMethod then + LootMethod = C_PartyInfo.GetLootMethod +else + LootMethod = GetLootMethod +end --[[ -- ************************************************************************** @@ -170,7 +176,7 @@ function TitanPanelLootTypeButton_GetButtonText(id) dungeondiff = ""; if (GetNumSubgroupMembers() > 0) or (GetNumGroupMembers() > 0) then - lootTypeText = TitanLootMethod[GetLootMethod()].text; + lootTypeText = TitanLootMethod[LootMethod()].text; lootThreshold = GetLootThreshold(); color = _G["ITEM_QUALITY_COLORS"][lootThreshold]; else @@ -260,7 +266,7 @@ end function TitanPanelLootTypeButton_GetTooltipText() local party = "" if (GetNumSubgroupMembers() > 0) or (GetNumGroupMembers() > 0) then - local lootTypeText = TitanLootMethod[GetLootMethod()].text; + local lootTypeText = TitanLootMethod[LootMethod()].text; local lootThreshold = GetLootThreshold(); local itemQualityDesc = _G["ITEM_QUALITY"..lootThreshold.."_DESC"]; local color = _G["ITEM_QUALITY_COLORS"][lootThreshold]; -- 1.7.9.5