Skip to content

Commit

Permalink
[RG] Added Sul-Xan's Sundering Strike announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Nov 8, 2021
1 parent 385bfe0 commit ae1727d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BuffsDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -604,4 +604,8 @@ RaidNotifier.BuffsDebuffs[RAID_KYNES_AEGIS] = kynes_aegis
-- -- Rockgrove------------------------------------------
-- -- ---------------------------------------------------
local rockgrove = {}

-- Sul-Xan Reaver's Sundering Strike
rockgrove.sulxan_reaver_sundering_strike = 149524

RaidNotifier.BuffsDebuffs[RAID_ROCKGROVE] = rockgrove
8 changes: 8 additions & 0 deletions Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ do ------------------
yandir_totem_spawn = 0, -- "Off"
},
rockgrove = {
sulxan_reaver_sundering_strike = 0, -- "Off"
},
dbg = {
enable = false,
Expand Down Expand Up @@ -545,6 +546,7 @@ function RaidNotifier:CreateSettingsMenu()
},
},
rockgrove = {
sulxan_reaver_sundering_strike = off_self_all,
},
}

Expand Down Expand Up @@ -1608,6 +1610,12 @@ function RaidNotifier:CreateSettingsMenu()

-- Rockgrove
MakeSubmenu(L.Settings_Rockgrove_Header, RaidNotifier:GetRaidDescription(RAID_ROCKGROVE))
MakeControlEntry({
type = "dropdown",
name = L.Settings_Rockgrove_Sundering_Strike,
tooltip = L.Settings_Rockgrove_Sundering_Strike_TT,
choices = choices.rockgrove.sulxan_reaver_sundering_strike,
}, "rockgrove", "sulxan_reaver_sundering_strike")
subTable = nil --end submenu

MakeControlEntry({
Expand Down
11 changes: 11 additions & 0 deletions TrialRockgrove.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ function RaidNotifier.RG.OnCombatEvent(_, result, isError, aName, aGraphic, aAct
if (tName == nil or tName == "") then
tName = self.UnitIdToString(tUnitId)
end

if (result == ACTION_RESULT_BEGIN) then
-- Sul-Xan Reaver's Sundering Strike
if (abilityId == buffsDebuffs.sulxan_reaver_sundering_strike) then
if (settings.sulxan_reaver_sundering_strike >= 1 and tType == COMBAT_UNIT_TYPE_PLAYER) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_SUNDERING_STRIKE), "rockgrove", "sulxan_reaver_sundering_strike")
elseif (settings.sulxan_reaver_sundering_strike == 2 and tName ~= "") then
self:AddAnnouncement(zo_strformat(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_SUNDERING_STRIKE_OTHER), tName), "rockgrove", "sulxan_reaver_sundering_strike")
end
end
end
end
4 changes: 4 additions & 0 deletions lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,12 @@ L.Alerts_KynesAegis_Chaurus_Totem = "|c39942eChaurus Totem|r s
--------------------------------
L.Settings_Rockgrove_Header = "Rockgrove"
-- Settings
L.Settings_Rockgrove_Sundering_Strike = "General: Sundering Strike"
L.Settings_Rockgrove_Sundering_Strike_TT = "Alerts you when the Sul-Xan Reaper makes Sundering Strike attack. Roll dodge it."

-- Alerts
L.Alerts_Rockgrove_Sundering_Strike = "Incoming |cCDCDCDSundering Strike|r on you!"
L.Alerts_Rockgrove_Sundering_Strike_Other = "Incoming |cCDCDCDSundering Strike|r on |cFF0000<<!aC:1>>|r!"


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

0 comments on commit ae1727d

Please sign in to comment.