From 3b6350345f4bf096eda53a7aa000fcd876853670 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Wed, 3 Jun 2020 17:08:17 +0300 Subject: [PATCH] cleanup UnitInSubgroupOrPlayer --- WeakAuras/BuffTrigger2.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/WeakAuras/BuffTrigger2.lua b/WeakAuras/BuffTrigger2.lua index 3c0d2d2..b20aea4 100644 --- a/WeakAuras/BuffTrigger2.lua +++ b/WeakAuras/BuffTrigger2.lua @@ -109,10 +109,6 @@ local matchDataByTrigger = {} local matchDataChanged = {} -local function UnitInSubgroupOrPlayer(unit) - return UnitIsUnit("player", unit) -end - local function GetOrCreateSubTable(base, next, ...) if not next then return base @@ -892,11 +888,11 @@ local function TriggerInfoApplies(triggerInfo, unit) if triggerInfo.unit == "group" and triggerInfo.groupSubType == "party" then if IsInRaid() then -- Filter our player/party# while in raid and keep only raid units that are correct - if not WeakAuras.multiUnitUnits.raid[unit] or not UnitInSubgroupOrPlayer(unit) then + if not WeakAuras.multiUnitUnits.raid[unit] or not UnitIsUnit("player", unit) then return false end else - if not UnitInSubgroupOrPlayer(unit) then + if not UnitIsUnit("player", unit) then return false end end