#ICC/Lich King: Added special warning if a priest or paladin healer get grabbed by a valk (untested)
@@ -21,6 +21,9 @@
"SWING_MISSED"
)
+local isPAL = select(2, UnitClass("player")) == "PALADIN"
+local isPRI = select(2, UnitClass("player")) == "PRIEST"
+
local warnRemorselessWinter = mod:NewSpellAnnounce(74270, 3) --Phase Transition Start Ability
local warnQuake = mod:NewSpellAnnounce(72262, 4) --Phase Transition End Ability
local warnRagingSpirit = mod:NewTargetAnnounce(69200, 3) --Transition Add
@@ -47,6 +50,8 @@
local specWarnNecroticPlague= mod:NewSpecialWarningYou(73912) --Phase 1+ Ability
local specWarnRagingSpirit = mod:NewSpecialWarningYou(69200) --Transition Add
local specWarnYouAreValkd = mod:NewSpecialWarning("specWarnYouAreValkd") --Phase 2+ Ability
+local specWarnPALGrabbed = mod:NewSpecialWarning("specWarnPALGrabbed", nil, false) --Phase 2+ Ability
+local specWarnPRIGrabbed = mod:NewSpecialWarning("specWarnPRIGrabbed", nil, false) --Phase 2+ Ability
local specWarnDefileCast = mod:NewSpecialWarning("specWarnDefileCast") --Phase 2+ Ability
local specWarnDefileNear = mod:NewSpecialWarning("specWarnDefileNear", false) --Phase 2+ Ability
local specWarnDefile = mod:NewSpecialWarningMove(73708) --Phase 2+ Ability
@@ -82,6 +87,7 @@
local soundDefile = mod:NewSound(72762)
+mod:AddBoolOption("specWarnHealerGrabbed", mod:IsTank() or mod:IsHealer(), "announce")
mod:AddBoolOption("DefileIcon")
mod:AddBoolOption("NecroticPlagueIcon")
mod:AddBoolOption("RagingSpiritIcon")
@@ -421,6 +427,13 @@
SendChatMessage(L.YellValk, "SAY")
end
end
+ if UnitName("raid"..i) == mod:IsHealer() then
+ if isPAL and self.Options.specWarnHealerGrabbed then
+ specWarnPALGrabbed:Show(UnitName("raid"..i))
+ elseif isPRI and self.Options.specWarnHealerGrabbed then
+ specWarnPRIGrabbed:Show(UnitName("raid"..i))
+ end
+ end
if mod.Options.AnnounceValkGrabs and DBM:GetRaidRank() > 0 then
if mod.Options.ValkyrIcon then
SendChatMessage(L.ValkGrabbedIcon:format(grabIcon, UnitName("raid"..i)), "RAID")--Untested, not sure if the icon timing will line up since i grab icon from a different function.
@@ -494,7 +494,9 @@
specWarnDefileCast = "Defile on you - Move away",
specWarnDefileNear = "Defile near you - Watch out",
specWarnTrapNear = "Shadow Trap near you - Watch out",
- warnNecroticPlagueJump = "Necrotic Plague jumped to >%s<"
+ warnNecroticPlagueJump = "Necrotic Plague jumped to >%s<",
+ specWarnPALGrabbed = "Paladin Healer %s has been grabbed",
+ specWarnPRIGrabbed = "Priest Healer %s has been grabbed"
}
L:SetTimerLocalization{
@@ -514,6 +516,7 @@
WarnPhase3Soon = "Show pre-warning for Phase 3 transition (at ~43%)",
ValkyrWarning = "Announce who has been grabbed by Val'kyr Shadowguards",
specWarnYouAreValkd = "Show special warning when you have been grabbed by a Val'kyr Shadowguard",--npc36609
+ specWarnHealerGrabbed = "Show special warning when a paladin or priest healer has been grabbed",
specWarnDefileCast = "Show special warning for $spell:72762 on you",
specWarnDefileNear = "Show special warning for $spell:72762 near you",
specWarnTrapNear = "Show special warning for $spell:73539 near you",