diff --git a/BuffsDebuffs.lua b/BuffsDebuffs.lua index 70fa0fe..c858126 100644 --- a/BuffsDebuffs.lua +++ b/BuffsDebuffs.lua @@ -647,4 +647,9 @@ RaidNotifier.BuffsDebuffs[RAID_ROCKGROVE] = rockgrove -- -- --------------------------------------------------- local dreadsail_reef = {} +-- Lylanar's Imminent Blister debuff (will be followed by Blistering Fragility; attack ID = 166522) +dreadsail_reef.lylanar_imminent_blister = 168525 +-- Turlassil's Imminent Chill debuff (will be followed by Chilling Fragility; attack ID = 166527) +dreadsail_reef.turlassil_imminent_chill = 168526 + RaidNotifier.BuffsDebuffs[RAID_DREADSAIL_REEF] = dreadsail_reef diff --git a/Settings.lua b/Settings.lua index e8a4933..f45400a 100644 --- a/Settings.lua +++ b/Settings.lua @@ -318,6 +318,7 @@ do ------------------ bahsei_embrace_of_death = 0, -- "Off" }, dreadsailReef = { + imminent_debuffs = false, }, dbg = { enable = false, @@ -1715,6 +1716,11 @@ function RaidNotifier:CreateSettingsMenu() -- Dreadsail Reef MakeSubmenu(L.Settings_DreadsailReef_Header, RaidNotifier:GetRaidDescription(RAID_DREADSAIL_REEF)) + MakeControlEntry({ + type = "checkbox", + name = L.Settings_DreadsailReef_Imminent_Debuffs, + tooltip = L.Settings_DreadsailReef_Imminent_Debuffs_TT, + }, "dreadsailReef", "imminent_debuffs") subTable = nil --end submenu MakeControlEntry({ diff --git a/TrialDreadsailReef.lua b/TrialDreadsailReef.lua index f9985ef..e72d659 100644 --- a/TrialDreadsailReef.lua +++ b/TrialDreadsailReef.lua @@ -23,4 +23,22 @@ function RaidNotifier.DSR.OnCombatEvent(_, result, isError, aName, aGraphic, aAc if (tName == nil or tName == "") then tName = self.UnitIdToString(tUnitId) end + + if (result == ACTION_RESULT_EFFECT_GAINED_DURATION) then + -- Lylanar's Imminent Blister debuff + if (abilityId == buffsDebuffs.lylanar_imminent_blister and settings.imminent_debuffs) then + if (tType == COMBAT_UNIT_TYPE_PLAYER) then + self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_IMMINENT_BLISTER), "dreadsailReef", "imminent_debuffs", true) + elseif (tName ~= "") then + self:StartCountdown(hitValue, zo_strformat(GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_IMMINENT_BLISTER_OTHER), tName), "dreadsailReef", "imminent_debuffs", true) + end + -- Turlassil's Imminent Chill debuff + elseif (abilityId == buffsDebuffs.turlassil_imminent_chill and settings.imminent_debuffs) then + if (tType == COMBAT_UNIT_TYPE_PLAYER) then + self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_IMMINENT_CHILL), "dreadsailReef", "imminent_debuffs", true) + elseif (tName ~= "") then + self:StartCountdown(hitValue, zo_strformat(GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_IMMINENT_CHILL_OTHER), tName), "dreadsailReef", "imminent_debuffs", true) + end + end + end end diff --git a/lang/en.lua b/lang/en.lua index a41722e..57db68e 100644 --- a/lang/en.lua +++ b/lang/en.lua @@ -630,8 +630,14 @@ L.Alerts_Rockgrove_Embrace_Of_Death_Other = "|cFF0000<>|r cursed -------------------------------- L.Settings_DreadsailReef_Header = "Dreadsail Reef" -- Settings +L.Settings_DreadsailReef_Imminent_Debuffs = "Lylanar & Turlassil: Imminent Blister/Chill" +L.Settings_DreadsailReef_Imminent_Debuffs_TT = "Alerts you when tank receives Imminent Blister debuff from Lylanar or Imminent Chill debuff from Turlassil. Tanks should swap in 10 seconds." -- Alerts +L.Alerts_DreadsailReef_Imminent_Blister = "You're afflicted by |cF27D0CImminent Blister|r! Swap tanks until" +L.Alerts_DreadsailReef_Imminent_Blister_Other = "|cFF0000<>|r afflicted by |cF27D0CImminent Blister|r! Swap tanks until" +L.Alerts_DreadsailReef_Imminent_Chill = "You're afflicted by |cB4CFFAImminent Chill|r! Swap tanks until" +L.Alerts_DreadsailReef_Imminent_Chill_Other = "|cFF0000<>|r afflicted by |cB4CFFAImminent Chill|r! Swap tanks until" --------------------------------