From 426860d6f11b413270d3ca3b93c785820767dc3e Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 30 Aug 2012 13:51:38 +0200 Subject: [PATCH] Use double underscore to avoid tainting blizzard --- oUF_P3lim.lua | 6 +++--- tags.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.9.5