From 1891c07692f49953c762dabb5889e23f85fc1b31 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 21 Sep 2009 01:33:18 +0200 Subject: [PATCH] Only show threat if there are any --- tags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags.lua b/tags.lua index 9a4b71d..0e0feba 100644 --- a/tags.lua +++ b/tags.lua @@ -36,7 +36,7 @@ end oUF.TagEvents['[pthreat]'] = 'UNIT_THREAT_LIST_UPDATE' oUF.Tags['[pthreat]'] = function() local _, _, perc = UnitDetailedThreatSituation('player', 'target') - return perc and ('%s%d%%|r'):format(hex(GetThreatStatusColor(UnitThreatSituation('player', 'target'))), perc) + return perc and perc > 0 ('%s%d%%|r'):format(hex(GetThreatStatusColor(UnitThreatSituation('player', 'target'))), perc) end oUF.Tags['[phealth]'] = function(unit) -- 1.7.9.5