From 977faf54a17c68b992ed6f75d5a982fa753a1776 Mon Sep 17 00:00:00 2001 From: d87 Date: Sat, 12 Sep 2020 18:42:53 +0700 Subject: [PATCH] Run Debuff Test on all available unit instead of just player (#34) --- Aptechka.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Aptechka.lua b/Aptechka.lua index 0a0e497..11bc8dc 100644 --- a/Aptechka.lua +++ b/Aptechka.lua @@ -2751,12 +2751,12 @@ function Aptechka:UpdateHighlightedDebuffsHashMap() end end -function Aptechka.TestDebuffSlots() +function Aptechka:TestDebuffSlots() + Aptechka:ForEachFrame(Aptechka.TestDebuffSlotsForUnit) +end +function Aptechka.TestDebuffSlotsForUnit(frame, unit) local shown = 0 local fill = 0 - local unit = "player" - local frames = Roster[unit] - local frame = next(frames) local debuffLineLength = frame.debuffIcons.maxChildren local numBossAuras = math.random(3)-1