Quantcast

Fix syntax error

Adrian L Lange [09-20-09 - 23:34]
Fix syntax error
Filename
tags.lua
diff --git a/tags.lua b/tags.lua
index 0e0feba..cc75556 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 perc > 0 ('%s%d%%|r'):format(hex(GetThreatStatusColor(UnitThreatSituation('player', 'target'))), perc)
+	return perc and perc > 0 and ('%s%d%%|r'):format(hex(GetThreatStatusColor(UnitThreatSituation('player', 'target'))), perc)
 end

 oUF.Tags['[phealth]'] = function(unit)