From 8121cf3c6c88c649492165e41d2ce2f60167eb94 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Sun, 20 Jun 2021 14:01:03 +0200 Subject: [PATCH] nature's grasp added to auras --- Constants.lua | 7 +++++++ Modules/Auras.lua | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Constants.lua b/Constants.lua index e5826a2..9fb88fa 100644 --- a/Constants.lua +++ b/Constants.lua @@ -182,6 +182,13 @@ local importantAuras = { root = true, spellID = 26989, }, + [select(1, GetSpellInfo(27010)) .. " " .. select(1, GetSpellInfo(16689))] = { + track = AURA_TYPE_DEBUFF, + duration = 10, + priority = 30, + spellID = 27010, + altName = select(1, GetSpellInfo(27010)) .. " " .. select(1, GetSpellInfo(16689)), + }, -- Feral Charge [GetSpellInfo(16979)] = { track = AURA_TYPE_DEBUFF, diff --git a/Modules/Auras.lua b/Modules/Auras.lua index 73bd710..1178cb5 100644 --- a/Modules/Auras.lua +++ b/Modules/Auras.lua @@ -275,10 +275,11 @@ function Auras:Test(unit) self:AURA_GAIN(unit,AURA_TYPE_DEBUFF, 7922, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration) self:SPELL_INTERRUPT(unit,19244, select(1, GetSpellInfo(19244)), "physical", 25396, select(1, GetSpellInfo(25396)), 64) elseif (unit == "arena2") then - spellName, _, icon = GetSpellInfo(6770) + spellName = select(1, GetSpellInfo(27010)) .. " " .. select(1, GetSpellInfo(16689)) + _, _, icon = GetSpellInfo(27010) self:AURA_FADE(unit, AURA_TYPE_BUFF) self:AURA_FADE(unit,AURA_TYPE_DEBUFF) - self:AURA_GAIN(unit,AURA_TYPE_DEBUFF, 6770, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration) + self:AURA_GAIN(unit,AURA_TYPE_DEBUFF, 27010, spellName, icon, self.auras[spellName].duration, GetTime() + self.auras[spellName].duration) self:SPELL_INTERRUPT(unit,19244, select(1, GetSpellInfo(19244)), "physical", 25396, select(1, GetSpellInfo(25396)), 64) elseif (unit == "arena3") then spellName, _, icon = GetSpellInfo(31224) @@ -618,9 +619,12 @@ function Auras:GetAuraOptions(auraType) for i,k in ipairs(auras) do options[tostring(k)] = { type = "group", - name = Gladdy:GetImportantAuras()["Unstable Affliction Silence"] + name = (Gladdy:GetImportantAuras()["Unstable Affliction Silence"] and Gladdy:GetImportantAuras()["Unstable Affliction Silence"].spellID == k - and Gladdy:GetImportantAuras()["Unstable Affliction Silence"].altName + and Gladdy:GetImportantAuras()["Unstable Affliction Silence"].altName) + or (Gladdy:GetImportantAuras()[select(1, GetSpellInfo(27010)) .. " " .. select(1, GetSpellInfo(16689))] + and Gladdy:GetImportantAuras()[select(1, GetSpellInfo(27010)) .. " " .. select(1, GetSpellInfo(16689))].spellID == k + and Gladdy:GetImportantAuras()[select(1, GetSpellInfo(27010)) .. " " .. select(1, GetSpellInfo(16689))].altName) or GetSpellInfo(k), order = i+2, icon = Gladdy:GetImportantAuras()[GetSpellInfo(k)] and Gladdy:GetImportantAuras()[GetSpellInfo(k)].texture or select(3, GetSpellInfo(k)),