From 94269369b6f0a526ae69b11cce2ed62bfcafdd4e Mon Sep 17 00:00:00 2001 From: Evan Cobb Date: Sat, 27 Jul 2024 11:19:35 -0500 Subject: [PATCH] no longer shows 0/0 completion for dungeons --- Broker_CTA.toc | 2 +- Display.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Broker_CTA.toc b/Broker_CTA.toc index 4fac6b4..36020bb 100644 --- a/Broker_CTA.toc +++ b/Broker_CTA.toc @@ -2,7 +2,7 @@ ## Title: Broker: Call to Arms ## Notes: Call to Arms bonus satchel scanning ## Author: @icbat -## Version: 16 +## Version: 17 ## IconTexture: Interface/Addons/Broker_CTA/ick-logo ## Dependencies diff --git a/Display.lua b/Display.lua index 4bee274..c63122e 100644 --- a/Display.lua +++ b/Display.lua @@ -27,6 +27,11 @@ local function buildCompletionMessage(instance_table, is_eligible) local total = instance_table["total_encounters"] local text = " " .. completed .. "/" .. total + if total == 0 then + -- Dungeons, for example, show 0/0 otherwise + return "" + end + if completed == total then return coloredText(text, red, is_eligible) end