Quantcast

Use double underscore to avoid tainting blizzard

Adrian L Lange [08-30-12 - 11:51]
Use double underscore to avoid tainting blizzard
Filename
oUF_P3lim.lua
tags.lua
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index db8927a..2fe0ee0 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -40,7 +40,7 @@ local function PostCreateAura(element, button)
 end

 local function PostUpdateDebuff(element, unit, button, index)
-	local _, _, _, _, type, _, _, owner = UnitAura(unit, index, button.filter)
+	local __, __, __, __, type, __, __, owner = UnitAura(unit, index, button.filter)

 	if(owner == 'player') then
 		local color = DebuffTypeColor[type or 'none']
@@ -69,7 +69,7 @@ do
 	}

 	function FilterPlayerBuffs(...)
-		local _, _, _, _, _, _, _, _, _, _, _, _, _, id = ...
+		local __, __, __, __, __, __, __, __, __, __, __, __, __, id = ...
 		return spells[id]
 	end
 end
@@ -82,7 +82,7 @@ do
 	}

 	function FilterTargetDebuffs(...)
-		local _, unit, _, _, _, _, _, _, _, _, owner, _, _, id = ...
+		local __, unit, __, __, __, __, __, __, __, __, owner, __, __, id = ...
 		return owner == 'player' or owner == 'vehicle' or UnitIsFriend('player', unit) or spells[id]
 	end
 end
diff --git a/tags.lua b/tags.lua
index a25d13f..19a5602 100644
--- a/tags.lua
+++ b/tags.lua
@@ -84,7 +84,7 @@ end
 tags.Methods['p3lim:power'] = function(unit)
 	local power = UnitPower(unit)
 	if(power > 0 and not UnitIsDeadOrGhost(unit)) then
-		local _, type = UnitPowerType(unit)
+		local __, type = UnitPowerType(unit)
 		local colors = _COLORS.power
 		return ('%s%d|r'):format(Hex(colors[type] or colors['RUNES']), power)
 	end