Skip to content

Commit

Permalink
Fixed ICD logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Mar 22, 2020
1 parent c428a70 commit 40625da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShestakUI/Modules/Auras/Filger.lua
Expand Up @@ -321,7 +321,7 @@ local function FindAuras(self, unit)
if not name then break end

local data = SpellGroups[self.Id].spells[name] or SpellGroups[self.Id].spells[spid]
if data and (data.caster ~= 1 and (caster == data.caster or data.caster == "all") or MyUnits[caster]) and data.unitID == unit then
if data and (data.caster ~= 1 and (caster == data.caster or data.caster == "all") or MyUnits[caster]) and (not data.unitID or data.unitID == unit) then
if data.absID then
data = SpellGroups[self.Id].spells[spid]
end
Expand All @@ -335,7 +335,7 @@ local function FindAuras(self, unit)
local slotLink = GetInventoryItemLink("player", data.slotID)
_, _, _, _, _, _, _, _, _, icon = GetItemInfo(slotLink)
end
self.actives[spid] = {data = data, name = name, icon = icon, count = count, start = GetTime(), duration = data.duration, spid = spid, sort = data.sort}
self.actives[spid] = {data = data, name = name, icon = icon, count = count, start = expirationTime - duration, duration = data.duration, spid = spid, sort = data.sort}
end
end
index = index + 1
Expand Down

0 comments on commit 40625da

Please sign in to comment.