Quantcast

Only show druidpower if unit is player (vehicle issues)

Adrian L Lange [08-13-09 - 17:50]
Only show druidpower if unit is player (vehicle issues)
Filename
customtags.lua
diff --git a/customtags.lua b/customtags.lua
index 39d7aa8..9c8ff49 100644
--- a/customtags.lua
+++ b/customtags.lua
@@ -66,5 +66,5 @@ end

 oUF.TagEvents['[druidpower]'] = 'UNIT_MANA UPDATE_SHAPESHIFT_FORM'
 oUF.Tags['[druidpower]'] = function(unit)
-	return UnitPowerType(unit) ~= 0 and ('|cff0090ff%d%%|r'):format(UnitPower(unit, 0) / UnitPowerMax(unit, 0) * 100)
+	return UnitPowerType(unit) ~= 0 and unit == 'player' and ('|cff0090ff%d%%|r'):format(UnitPower(unit, 0) / UnitPowerMax(unit, 0) * 100)
 end