Skip to content

Commit

Permalink
[DSR] Added Reef Heart spawn alert at the Reef Guardian boss fight
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Aug 4, 2022
1 parent e3ae227 commit d333b8c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BuffsDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,8 @@ dreadsail_reef.turlassil_imminent_chill = 168526
dreadsail_reef.lylanar_broiling_hew = 167273
-- Turlassil's Heavy Attack
dreadsail_reef.turlassil_stinging_shear = 167280
-- Reef Guardian's cast on Reef Heart
dreadsail_reef.reef_guardian_heartburn = 163692
-- Tideborn Taleria's Rapid Deluge
dreadsail_reef.taleria_rapid_deluge = {
[174959] = true, -- Normal
Expand Down
6 changes: 6 additions & 0 deletions Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ do ------------------
dreadsailReef = {
imminent_debuffs = false,
brothers_heavy_attack = 0, -- "Off"
reef_guardian_reef_heart = false,
taleria_rapid_deluge = 0, -- "Off"
},
dbg = {
Expand Down Expand Up @@ -1731,6 +1732,11 @@ function RaidNotifier:CreateSettingsMenu()
tooltip = L.Settings_DreadsailReef_Brothers_Heavy_Attack_TT,
choices = choices.dreadsailReef.brothers_heavy_attack,
}, "dreadsailReef", "brothers_heavy_attack")
MakeControlEntry({
type = "checkbox",
name = L.Settings_DreadsailReef_ReefGuardian_ReefHeart,
tooltip = L.Settings_DreadsailReef_ReefGuardian_ReefHeart_TT,
}, "dreadsailReef", "reef_guardian_reef_heart")
MakeControlEntry({
type = "dropdown",
name = L.Settings_DreadsailReef_Rapid_Deluge,
Expand Down
14 changes: 14 additions & 0 deletions TrialDreadsailReef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ function RaidNotifier.DSR.Initialize()
dbg = RaidNotifier.dbg

data = {}
data.reefHeartCounter = 0
end

function RaidNotifier.DSR.OnCombatStateChanged(inCombat)
if inCombat then
data.reefHeartCounter = 0
end
end

function RaidNotifier.DSR.OnCombatEvent(_, result, isError, aName, aGraphic, aActionSlotType, sName, sType, tName, tType, hitValue, pType, dType, log, sUnitId, tUnitId, abilityId)
Expand All @@ -39,6 +46,13 @@ function RaidNotifier.DSR.OnCombatEvent(_, result, isError, aName, aGraphic, aAc
elseif (settings.brothers_heavy_attack == 2 and tName ~= "") then
self:AddAnnouncement(zo_strformat(GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_STINGING_SHEAR_OTHER), tName), "dreadsailReef", "brothers_heavy_attack")
end
elseif (abilityId == buffsDebuffs.reef_guardian_heartburn and settings.reef_guardian_reef_heart) then
data.reefHeartCounter = data.reefHeartCounter + 1
self:AddAnnouncement(
zo_strformat(GetString(RAIDNOTIFIER_ALERTS_DREADSAILREEF_REEFGUARDIAN_REEFHEART), data.reefHeartCounter),
"dreadsailReef",
"reef_guardian_reef_heart"
)
end
elseif (result == ACTION_RESULT_EFFECT_GAINED_DURATION) then
-- Lylanar's Imminent Blister debuff
Expand Down
3 changes: 3 additions & 0 deletions lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ L.Settings_DreadsailReef_Imminent_Debuffs = "Lylanar & Turlassil: Immin
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."
L.Settings_DreadsailReef_Brothers_Heavy_Attack = "Lylanar & Turlassil: Heavy attack"
L.Settings_DreadsailReef_Brothers_Heavy_Attack_TT = "Alerts you when Lylanar or Turlassil makes their heavy attack (Broiling Hew / Stinging Shear)."
L.Settings_DreadsailReef_ReefGuardian_ReefHeart = "Reef Guardian: Reef Heart spawn"
L.Settings_DreadsailReef_ReefGuardian_ReefHeart_TT = "Alerts you when Reef Heart appears. You have 60 seconds to kill it or it's a group wipe. There can be several Hearts active at the same time."
L.Settings_DreadsailReef_Rapid_Deluge = "Taleria: Rapid Deluge"
L.Settings_DreadsailReef_Rapid_Deluge_TT = "Alerts you when you or someone got Rapid Deluge debuff. They'll explode in 6 seconds, and the best option to handle the damage is to be swimming at that time."

Expand All @@ -646,6 +648,7 @@ L.Alerts_DreadsailReef_Broiling_Hew = "Incoming |cCDCDCDBroiling
L.Alerts_DreadsailReef_Broiling_Hew_Other = "Incoming |cCDCDCDBroiling Hew|r on |cFF0000<<!aC:1>>|r!"
L.Alerts_DreadsailReef_Stinging_Shear = "Incoming |cCDCDCDStinging Shear|r on you!"
L.Alerts_DreadsailReef_Stinging_Shear_Other = "Incoming |cCDCDCDStinging Shear|r on |cFF0000<<!aC:1>>|r!"
L.Alerts_DreadsailReef_ReefGuardian_ReefHeart = "Reef Heart #|cFF0000<<1>>|r spawned!"
L.Alerts_DreadsailReef_Rapid_Deluge = "You got |c1CA3ECRapid Deluge|r! You should be swimming in"
L.Alerts_DreadsailReef_Rapid_Deluge_Other = "|cFF0000<<!aC:1>>|r got |c1CA3ECRapid Deluge|r! Swim in"

Expand Down

0 comments on commit d333b8c

Please sign in to comment.