Add a new line for threat details.
Scott Sibley [03-14-11 - 00:37]
Add a new line for threat details.
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 = {}