Skip to content

Commit

Permalink
[RG] Added Sul-Xan's Astral Shield announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Nov 8, 2021
1 parent ae1727d commit e936810
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BuffsDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -607,5 +607,11 @@ local rockgrove = {}

-- Sul-Xan Reaver's Sundering Strike
rockgrove.sulxan_reaver_sundering_strike = 149524
-- Sul-Xan Soulweaver's Astral Shield: casting
rockgrove.sulxan_soulweaver_astral_shield_cast = 149089
-- Sul-Xan Soulweaver's Astral Shield: gained shield by himself
rockgrove.sulxan_soulweaver_astral_shield_self = 149099
-- Sul-Xan Soulweaver's Astral Shield: gained shield by other adds
rockgrove.sulxan_soulweaver_astral_shield_others = 157236

RaidNotifier.BuffsDebuffs[RAID_ROCKGROVE] = rockgrove
6 changes: 6 additions & 0 deletions Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ do ------------------
},
rockgrove = {
sulxan_reaver_sundering_strike = 0, -- "Off"
sulxan_soulweaver_astral_shield = false,
},
dbg = {
enable = false,
Expand Down Expand Up @@ -1616,6 +1617,11 @@ function RaidNotifier:CreateSettingsMenu()
tooltip = L.Settings_Rockgrove_Sundering_Strike_TT,
choices = choices.rockgrove.sulxan_reaver_sundering_strike,
}, "rockgrove", "sulxan_reaver_sundering_strike")
MakeControlEntry({
type = "checkbox",
name = L.Settings_Rockgrove_Astral_Shield,
tooltip = L.Settings_Rockgrove_Astral_Shield_TT,
}, "rockgrove", "sulxan_soulweaver_astral_shield")
subTable = nil --end submenu

MakeControlEntry({
Expand Down
17 changes: 17 additions & 0 deletions TrialRockgrove.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ function RaidNotifier.RG.OnCombatEvent(_, result, isError, aName, aGraphic, aAct
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
-- Sul-Xan Soulweaver's Astral Shield (cast)
elseif (abilityId == buffsDebuffs.sulxan_soulweaver_astral_shield_cast) then
if (settings.sulxan_soulweaver_astral_shield) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_ASTRAL_SHIELD_CAST), "rockgrove", "sulxan_soulweaver_astral_shield")
end
end
elseif (result == ACTION_RESULT_EFFECT_FADED) then
-- Sul-Xan Soulweaver's Soul Remnant attack (his Astral Shield is broken)
if (abilityId == buffsDebuffs.sulxan_soulweaver_astral_shield_self) then
if (settings.sulxan_soulweaver_astral_shield) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_SOUL_REMNANT_HEAVY), "rockgrove", "sulxan_soulweaver_astral_shield")
end
-- Other's Soul Remnant attack (Astral Shield gained from Soulweaver is broken)
elseif (abilityId == buffsDebuffs.sulxan_soulweaver_astral_shield_others) then
if (settings.sulxan_soulweaver_astral_shield) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_SOUL_REMNANT), "rockgrove", "sulxan_soulweaver_astral_shield")
end
end
end
end
5 changes: 5 additions & 0 deletions lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,15 @@ 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."
L.Settings_Rockgrove_Astral_Shield = "General: Astral Shield"
L.Settings_Rockgrove_Astral_Shield_TT = "Alerts you when the Sul-Xan Soulweaver casts his Astral Shield, and when Soul Remnants affect you."

-- 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!"
L.Alerts_Rockgrove_Astral_Shield_Cast = "|cFFFF8FAstral Shield|r has been casted. Prepare to dodge or block!"
L.Alerts_Rockgrove_Soul_Remnant_Heavy = "|cFF0000Incoming|r |c8FF2FFSoul Remnant|r!"
L.Alerts_Rockgrove_Soul_Remnant = "Incoming |c8FF2FFSoul Remnant|r!"


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

0 comments on commit e936810

Please sign in to comment.