Skip to content

Commit

Permalink
no longer shows 0/0 completion for dungeons
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Cobb committed Jul 27, 2024
1 parent 502135f commit 9426936
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Broker_CTA.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions Display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9426936

Please sign in to comment.