Make AuraTrigger supply stack information to the indicators
This commit is contained in:
@@ -73,14 +73,16 @@ function AuraTrigger:AddAura(aura)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
self.count = self.count + 1
|
self.count = self.count + 1
|
||||||
self:SetState(self.count >= self.requiredCount)
|
self:SetState(self.count >= self.requiredCount, {stacks=aura.applications})
|
||||||
end
|
end
|
||||||
|
|
||||||
---Inform the trigger about an updated aura
|
---Inform the trigger about an updated aura
|
||||||
---@param before UnitAuraInfo
|
---@param before UnitAuraInfo
|
||||||
---@param after UnitAuraInfo
|
---@param after UnitAuraInfo
|
||||||
function AuraTrigger:UpdateAura(before, after)
|
function AuraTrigger:UpdateAura(before, after)
|
||||||
--
|
if self.active then
|
||||||
|
self.indicator:Update({stacks=after.applications})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
---Inform the trigger about an aura that got removed
|
---Inform the trigger about an aura that got removed
|
||||||
|
Reference in New Issue
Block a user