From b00e4e3ae9ca9e8837d92d8f594140ab17d4cc68 Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Thu, 18 Jun 2020 17:59:54 +0300 Subject: [PATCH] Add new mythic boss abilities --- kehys/auras.lua | 7 +++++-- kehys/updater.lua | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/kehys/auras.lua b/kehys/auras.lua index c9e7158..f86034a 100644 --- a/kehys/auras.lua +++ b/kehys/auras.lua @@ -2,6 +2,8 @@ -- 2019 Aleksi Blinnikka local _, addon = ...; local CombatLogGetCurrentEventInfo = CombatLogGetCurrentEventInfo; +local UnitAura = UnitAura; +local UnitGUID = UnitGUID; local guids = addon.FrameGuids; local watchedAuras = { @@ -52,7 +54,6 @@ local watchedAuras = { [287072] = {1, "heal"}, -- Liquid Gold (Opulence) [284781] = {1, "heal"}, -- Grievous Axe (Rastakhan) [290955] = {1, "heal"}, -- Grievous Axe (Rastakhan) - --[284663] = {1, "alert"}, -- Bwonsamdi's Wrath (Conclave) -- Crucible of Storms [282566] = {1, "stacks"}, -- Promises of Power (Restless Cabal) [282738] = {1, "alert"}, -- Embrace of the Void (Restless Cabal) @@ -83,7 +84,9 @@ local watchedAuras = { [313460] = {1, "alert"}, -- Nullification (Hivemind) [313461] = {1, "heal"}, -- Corrosion (Hivemind) [307359] = {1, "heal"}, -- Despair (Vexiona) - [316065] = {1, "alert"}, -- Corrupted Existence (Ra'den) + [313077] = {1, "heal"}, -- Unleashed Nightmare (Ra-den) + [316065] = {1, "alert"}, -- Corrupted Existence (Ra-den) + [313364] = {1, "heal"}, -- Mental Decay (Carapace of N'zoth) }; local playerGuid = nil; diff --git a/kehys/updater.lua b/kehys/updater.lua index 68015bb..347096c 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -23,6 +23,8 @@ local healcolor = addon.Colors.OverlayColorHeal; local ignoredAuras = { [315176] = true, -- Grasping Tendrils + [313759] = true, -- Cursed Blood (Il'gynoth) + [312486] = true, -- Recurring Nightmare (Il'gynoth) }; local powerColors = { @@ -140,6 +142,8 @@ function addon.FrameUpdate(frame) frame.text:SetFormattedText("%.2fM", current / 1000000); elseif current > 1000 then -- 1.0K frame.text:SetFormattedText("%.1fK", current / 1000); + else + frame.text:SetFormattedText("%i", current); end if not frame.text:IsShown() then frame.text:Show() end end @@ -225,6 +229,7 @@ function addon.FrameUpdate(frame) frame.stacks = {}; frame.heal = {}; frame.buff1 = {}; + frame.buff2 = {}; addon.SetAuras(frame.unit, frame.guid); frame.rounds = 0; end -- 2.39.5