From 6f231446617d2502a202edd048bd69be8a98097b Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 10 Jun 2010 20:22:20 +0200 Subject: [PATCH] Don't show power if the unit is dead --- oUF_P3lim.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 438c02d..052b2e8 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -46,7 +46,7 @@ for name, func in pairs({ end, ['power'] = function(unit) local power = UnitPower(unit) - if(power > 0) then + if(power > 0 and not UnitIsDeadOrGhost(unit)) then local _, type = UnitPowerType(unit) local colors = _COLORS.power return ('%s%d|r'):format(Hex(colors[type] or colors['RUNES']), power) -- 1.7.9.5