Quantcast

Show a icon when pet is dead

Adrian L Lange [06-19-14 - 23:32]
Show a icon when pet is dead
Filename
tags.lua
diff --git a/tags.lua b/tags.lua
index 446627d..d9ab5d3 100644
--- a/tags.lua
+++ b/tags.lua
@@ -150,5 +150,7 @@ tags.Methods['p3lim:pet'] = function()
 	if(cur > 0) then
 		local max = UnitHealthMax('pet')
 		return ('%s%d%%|r'):format(Hex(ColorGradient(cur, max, 1, 0, 0, 1, 1, 0, 1, 1, 1)), cur / max * 100)
+	elseif(UnitIsDead('pet')) then
+		return '|TInterface\\RaidFrame\\Raid-Icon-DebuffDisease:26|t'
 	end
 end