Skip to content

Commit

Permalink
[RG] Added Sul-Xan's Soul Extraction announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Nov 8, 2021
1 parent e936810 commit fc5d503
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BuffsDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -613,5 +613,10 @@ rockgrove.sulxan_soulweaver_astral_shield_cast = 149089
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
-- Sul-Xan Soulweaver's Soul Extraction
rockgrove.sulxan_soulweaver_soul_extraction = {
[158441] = true,
[158442] = true,
}

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 @@ -304,6 +304,7 @@ do ------------------
rockgrove = {
sulxan_reaver_sundering_strike = 0, -- "Off"
sulxan_soulweaver_astral_shield = false,
sulxan_soulweaver_soul_extraction = false,
},
dbg = {
enable = false,
Expand Down Expand Up @@ -1622,6 +1623,11 @@ function RaidNotifier:CreateSettingsMenu()
name = L.Settings_Rockgrove_Astral_Shield,
tooltip = L.Settings_Rockgrove_Astral_Shield_TT,
}, "rockgrove", "sulxan_soulweaver_astral_shield")
MakeControlEntry({
type = "checkbox",
name = L.Settings_Rockgrove_Soul_Extraction,
tooltip = L.Settings_Rockgrove_Soul_Extraction_TT,
}, "rockgrove", "sulxan_soulweaver_soul_extraction")
subTable = nil --end submenu

MakeControlEntry({
Expand Down
12 changes: 12 additions & 0 deletions TrialRockgrove.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ function RaidNotifier.RG.OnCombatEvent(_, result, isError, aName, aGraphic, aAct
if (settings.sulxan_soulweaver_astral_shield) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_ASTRAL_SHIELD_CAST), "rockgrove", "sulxan_soulweaver_astral_shield")
end
-- Sul-Xan Soulweaver's Soul Extraction
elseif (buffsDebuffs.sulxan_soulweaver_soul_extraction[abilityId]) then
if (settings.sulxan_soulweaver_soul_extraction and tType == COMBAT_UNIT_TYPE_PLAYER) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_SOUL_EXTRACTION), "rockgrove", "sulxan_soulweaver_soul_extraction")
end
end
elseif (result == ACTION_RESULT_EFFECT_GAINED_DURATION) then
-- Sul-Xan Soulweaver's Soul Extraction (Debug purpose only!)
if (buffsDebuffs.sulxan_soulweaver_soul_extraction[abilityId]) then
if (settings.sulxan_soulweaver_soul_extraction and tType == COMBAT_UNIT_TYPE_PLAYER) then
self:AddAnnouncement(GetString(RAIDNOTIFIER_ALERTS_ROCKGROVE_SOUL_EXTRACTION) .. " (GainDur)", "rockgrove", "sulxan_soulweaver_soul_extraction")
end
end
elseif (result == ACTION_RESULT_EFFECT_FADED) then
-- Sul-Xan Soulweaver's Soul Remnant attack (his Astral Shield is broken)
Expand Down
3 changes: 3 additions & 0 deletions lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -581,13 +581,16 @@ 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."
L.Settings_Rockgrove_Soul_Extraction = "General: Soul Extraction"
L.Settings_Rockgrove_Soul_Extraction_TT = "Alerts you when the Sul-Xan Soulweaver casts Soul Extraction on 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!"
L.Alerts_Rockgrove_Soul_Extraction = "Incoming Soul Extraction on you!"


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

0 comments on commit fc5d503

Please sign in to comment.