From 2be1cacdfc5451e57ac4746dbf295a0defc32101 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 19 May 2024 14:30:11 +0200 Subject: [PATCH] actionbar: remove item count from reagent strings --- modules/actionbar.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index da3ed212..dae27954 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -1611,6 +1611,9 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () scanner:SetAction(slot) local _, reagents = scanner:Find(reagent_capture) + -- remove reagent counts if existing + reagents = reagents and string.gsub(reagents, " %((.+)%)", "") + -- update on reagent requirement changes if reagents and reagent_slots[slot] ~= reagents then reagent_counts[reagents] = reagent_counts[reagents] or 0