Skip to content

Commit

Permalink
[DSR] Added Lylanar&Turlassil Imminent Blister/Chill debuff countdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Jun 18, 2022
1 parent cd06862 commit 77b0b4f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BuffsDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ do ------------------
bahsei_embrace_of_death = 0, -- "Off"
},
dreadsailReef = {
imminent_debuffs = false,
},
dbg = {
enable = false,
Expand Down Expand Up @@ -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({
Expand Down
18 changes: 18 additions & 0 deletions TrialDreadsailReef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,14 @@ L.Alerts_Rockgrove_Embrace_Of_Death_Other = "|cFF0000<<!aC:1>>|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<<!aC:1>>|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<<!aC:1>>|r afflicted by |cB4CFFAImminent Chill|r! Swap tanks until"


--------------------------------
Expand Down

0 comments on commit 77b0b4f

Please sign in to comment.