From 21a651b25c11117e6caf486d67d42cec75393def Mon Sep 17 00:00:00 2001 From: omicron Date: Fri, 7 Apr 2023 08:35:01 +0200 Subject: [PATCH] Make AuraTrigger supply stack information to the indicators --- src/types/triggers/auratrigger.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types/triggers/auratrigger.lua b/src/types/triggers/auratrigger.lua index 37eac84..36d0ddb 100644 --- a/src/types/triggers/auratrigger.lua +++ b/src/types/triggers/auratrigger.lua @@ -73,14 +73,16 @@ function AuraTrigger:AddAura(aura) return end self.count = self.count + 1 - self:SetState(self.count >= self.requiredCount) + self:SetState(self.count >= self.requiredCount, {stacks=aura.applications}) end ---Inform the trigger about an updated aura ---@param before UnitAuraInfo ---@param after UnitAuraInfo function AuraTrigger:UpdateAura(before, after) - -- + if self.active then + self.indicator:Update({stacks=after.applications}) + end end ---Inform the trigger about an aura that got removed