From f063544d5d95d3ca0ed89fce70c05e9249ac714f Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Mon, 14 Mar 2011 00:37:10 +0000 Subject: [PATCH] Add a new line for threat details. --- Modules/UnitTooltip/UnitTooltip.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua index b6129a0..43115b0 100644 --- a/Modules/UnitTooltip/UnitTooltip.lua +++ b/Modules/UnitTooltip/UnitTooltip.lua @@ -653,7 +653,20 @@ if fails and fails > 0 then end ]], enabled = true - } + }, + [34] = { + name = "Threat", + left = [[ +local isTanking, status, threatpct, rawthreatpct, threatvalue = UnitDetailedThreatSituation(unit, "target") + +if not threatpct then return "" end + +return format("Threat: %d%% (%.2f%%)", threatpct, rawthreatpct) +]], + enabled = true, + update = 300, + leftUpdating = true + } } local options = {} -- 1.7.9.5