height = 80,
},
},
+ ["Gilden"] = {
+ {
+ unit = "target",
+ auras = {"Shadow Word: Pain"},
+ auraFilter = "PLAYER HARMFUL",
+ x = 660,
+ y = 440,
+ width = 60,
+ height = 60,
+ },
+ {
+ unit = "player",
+ auras = {"Power Word: Fortitude"},
+ auraFilter = "PLAYER HELPFUL",
+ invert = true,
+ x = 720,
+ y = 440,
+ width = 60,
+ height = 60,
+ },
+ },
["Gedren"] = {
{
totems = {1}, -- Efflorescence
width = 40,
height = 40,
},
+ {
+ unit = "player",
+ auras = {"Unleash Life"},
+ auraFilter = "PLAYER HELPFUL",
+ x = 740,
+ y = 440,
+ width = 40,
+ height = 40,
+ },
},
},
};
"Delusions", "Entropic Blast", "Necrotic Embrace", "Flametouched", "Shadowtouched",
"Blazing Eruption", "Shattering Scream", "Consuming Hunger", "Unstable Soul",
"Time Bomb", "Broken Shard", "Demolished", "Fetid Rot", "Roiling Deceit",
+ "Putrid Blood", "Endemic Virus", "Lingering Infection", "Gigavolt Charge",
+ "Crackling Lightning", "Storm's Wail", "Death's Door", "Deathly Withering",
+ "Chilling Touch", "Volatile Charge", "Liquid Gold", "Drained Soul"
},
auraFilter = "HARMFUL",
x = 660,
name, icon, count, _, duration, expires = UnitAura(unit, i, auraFilter);
if not name then break end
-- possible improvement to add spellID as an option
- if frame.auras[name] then
+ if frame.auras[name] and not frame.invert then
if count > 1 then
frame.stack:SetText(count);
frame.stack:Show();
frame.icon:SetTexture(icon);
frame:Show();
return;
+ elseif frame.auras[name] and frame.invert then
+ frame.icon:SetTexture(icon);
+ frame:Hide();
+ return;
end
i = i + 1;
end
+ if frame.invert then
+ frame:Show(); -- not functional without first hiding once to get SetTexture
+ return;
+ end
end
frame:Hide();
end
end
frame.auraFilter = config.auraFilter;
frame.totems = config.totems;
+ frame.invert = config.invert;
frame:Hide();
frame.base = frame:CreateTexture(nil, "BACKGROUND");
frame.base:SetAllPoints();