cleanup UnitInSubgroupOrPlayer
This commit is contained in:
parent
b2cede99f0
commit
3b6350345f
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue