Skip to content

Commit

Permalink
actionbar: remove item count from reagent strings
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed May 19, 2024
1 parent 57fd9b5 commit 2be1cac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/actionbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2be1cac

Please sign in to comment.