Commit e1fc5c03 authored by Simpy's avatar Simpy 🐹

comments

parent 8652f81b
......@@ -722,7 +722,7 @@ function mod:StyleFilterConditionCheck(frame, filter, trigger)
end
end
--Try to match according to raid target conditions
-- Raid Target
if trigger.raidTarget.star or trigger.raidTarget.circle or trigger.raidTarget.diamond or trigger.raidTarget.triangle or trigger.raidTarget.moon or trigger.raidTarget.square or trigger.raidTarget.cross or trigger.raidTarget.skull then
if trigger.raidTarget[mod.TriggerConditions.raidTargets[frame.RaidTargetIndex]] then passed = true else return end
end
......@@ -811,7 +811,7 @@ function mod:StyleFilterConditionCheck(frame, filter, trigger)
end
end
--Try to match according to cooldown conditions
-- Cooldown
if trigger.cooldowns and trigger.cooldowns.names and next(trigger.cooldowns.names) then
local cooldown = mod:StyleFilterCooldownCheck(trigger.cooldowns.names, trigger.cooldowns.mustHaveAll)
if cooldown ~= nil then -- ignore if none are set to ONCD or OFFCD
......@@ -819,7 +819,7 @@ function mod:StyleFilterConditionCheck(frame, filter, trigger)
end
end
--Try to match according to buff aura conditions
-- Buffs
if trigger.buffs and trigger.buffs.names and next(trigger.buffs.names) then
local buff = mod:StyleFilterAuraCheck(frame, trigger.buffs.names, frame.Buffs, trigger.buffs.mustHaveAll, trigger.buffs.missing, trigger.buffs.minTimeLeft, trigger.buffs.maxTimeLeft)
if buff ~= nil then -- ignore if none are selected
......@@ -827,7 +827,7 @@ function mod:StyleFilterConditionCheck(frame, filter, trigger)
end
end
--Try to match according to debuff aura conditions
-- Debuffs
if trigger.debuffs and trigger.debuffs.names and next(trigger.debuffs.names) then
local debuff = mod:StyleFilterAuraCheck(frame, trigger.debuffs.names, frame.Debuffs, trigger.debuffs.mustHaveAll, trigger.debuffs.missing, trigger.debuffs.minTimeLeft, trigger.debuffs.maxTimeLeft)
if debuff ~= nil then -- ignore if none are selected
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment