Quantcast

Quite a few vehicles have powers we don't have a color for. Default to "MANA"

Adrian L Lange [10-27-14 - 13:55]
Quite a few vehicles have powers we don't have a color for. Default to "MANA"
Filename
elements/tags.lua
diff --git a/elements/tags.lua b/elements/tags.lua
index 4845c4e..c6c12ef 100644
--- a/elements/tags.lua
+++ b/elements/tags.lua
@@ -127,7 +127,7 @@ for tag, func in next, {
 	end,
 	ptype = function(unit)
 		local _, type = UnitPowerType(unit)
-		return Hex(_COLORS.power[type])
+		return Hex(_COLORS.power[type] or _COLORS.power.MANA)
 	end,
 	leader = function(unit)
 		return UnitIsGroupLeader(unit) and '|cffffff00!|r'