Quantcast

Revert "Use double underscore to avoid tainting blizzard"

Adrian L Lange [11-02-12 - 13:54]
Revert "Use double underscore to avoid tainting blizzard"

This reverts commit 426860d6f11b413270d3ca3b93c785820767dc3e.
Filename
oUF_P3lim.lua
tags.lua
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index fd5b73c..3fad855 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -130,7 +130,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']
@@ -162,7 +162,7 @@ do
 	}

 	function FilterPlayerBuffs(...)
-		local __, __, __, __, __, __, __, __, __, __, __, __, __, id = ...
+		local _, _, _, _, _, _, _, _, _, _, _, _, _, id = ...
 		return spells[id]
 	end
 end
@@ -177,7 +177,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 b9adf1f..63563d3 100644
--- a/tags.lua
+++ b/tags.lua
@@ -80,7 +80,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