removed unused code from iron council mod, also removed rune of power special warning if a boss gets buff as that particular buff is applied and removed too much during fight to be watching it and degrading performance. instead just check runemasters target when he casts instead to figure out who it's on much cleaner.
@@ -49,12 +49,11 @@
-- Runemaster Molgeim
-- Lightning Blast ... don't know, maybe 63491
local timerShieldofRunes = mod:NewBuffActiveTimer(15, 63967)
-local warnRuneofPower = mod:NewSpellAnnounce(64320, 1)
+local warnRuneofPower = mod:NewTargetAnnounce(64320, 2)
local warnRuneofDeath = mod:NewSpellAnnounce(63490, 2)
local warnShieldofRunes = mod:NewSpellAnnounce(63489, 2)
local warnRuneofSummoning = mod:NewSpellAnnounce(62273, 3)
local specwarnRuneofDeath = mod:NewSpecialWarningMove(63490)
-local specwarnRuneofPower = mod:NewSpecialWarning("RuneofPower", false)
local timerRuneofDeathDura = mod:NewNextTimer(30, 63490)
local timerRuneofPower = mod:NewCDTimer(30, 61974)
local timerRuneofDeath = mod:NewCDTimer(30, 63490)
@@ -71,11 +70,11 @@
disruptIcon = 7
end
---[[function mod:OnCombatEnd()
- if DBM.RangeCheck:IsShown() then
- DBM.RangeCheck:Hide()
+function mod:RuneTarget()
+ local targetname = self:GetBossTarget(32927)
+ if not targetname then return end
+ warnRuneofPower:Show(targetname)
end
-end--]]
local function warnStaticDisruptionTargets()
warnStaticDisruption:Show(table.concat(disruptTargets, "<, >"))
@@ -105,7 +104,7 @@
warnRuneofDeath:Show()
timerRuneofDeathDura:Start()
elseif args:IsSpellID(64321, 61974) then -- Rune of Power
- warnRuneofPower:Show()
+ self:ScheduleMethod(0.1, "RuneTarget")
timerRuneofPower:Start()
elseif args:IsSpellID(61869, 63481) then -- Overload
timerOverload:Start()
@@ -121,8 +120,6 @@
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpellID(61903, 63493) then -- Fusion Punch
timerFusionPunchActive:Start(args.destName)
- elseif args:IsSpellID(64320) and not args:IsDestTypePlayer() then -- Rune of Power
- specwarnRuneofPower:Show(args.destName)
elseif args:IsSpellID(62269, 63490) then -- Rune of Death - move away from it
if args:IsPlayer() then
specwarnRuneofDeath:Show()
@@ -143,14 +140,9 @@
if mod:IsDifficulty("heroic10") then
mod:SetIcon(args.destName, 8, 60) -- skull for 60 seconds (until meltdown)
else
- mod:SetIcon(args.destName, 8, 30) -- skull for 30 seconds (until meltdown)
+ mod:SetIcon(args.destName, 8, 35) -- skull for 35 seconds (until meltdown)
end
end
---[[ if args:IsPlayer() then
- if self.Options.RangeFrame then
- DBM.RangeCheck:Show(30)
- end
- end--]]
elseif args:IsSpellID(63486, 61887) then -- Lightning Tendrils
timerLightningTendrils:Start()
specwarnLightningTendrils:Show()
@@ -148,8 +148,7 @@
}
L:SetWarningLocalization{
- WarningSupercharge = "Superladung auf Boss",
- RuneofPower = "Rune der Macht auf >%s<",
+ WarningSupercharge = "Superladung auf Boss"
}
L:SetTimerLocalization{
@@ -162,8 +161,7 @@
SetIconOnStaticDisruption = "Setze Zeichen auf Ziel von Statische Störung",
AlwaysWarnOnOverload = "Warne immer bei Überladen (ansonsten nur wenn Boss im Ziel)",
PlaySoundOnOverload = "Spiele Sound bei Überladen",
- PlaySoundDeathRune = "Spiele Sound bei Rune des Todes",
- RuneofPower = "Zeige Spezialwarnung wenn Boss von Rune der Macht betroffen ist"
+ PlaySoundDeathRune = "Spiele Sound bei Rune des Todes"
}
L:SetMiscLocalization{
@@ -139,8 +139,7 @@
}
L:SetWarningLocalization{
- WarningSupercharge = "Supercharge incoming",
- RuneofPower = "Rune of Power on >%s<"
+ WarningSupercharge = "Supercharge incoming"
}
L:SetTimerLocalization{
@@ -153,8 +152,7 @@
SetIconOnStaticDisruption = "Set icons on Static Disruption targets",
AlwaysWarnOnOverload = "Always warn on Overload (otherwise, only when targeted)",
PlaySoundOnOverload = "Play sound on Overload",
- PlaySoundDeathRune = "Play sound on Rune of Death",
- RuneofPower = "Show special warning when Boss is affected by Rune of Power"
+ PlaySoundDeathRune = "Play sound on Rune of Death"
}
L:SetMiscLocalization{
@@ -142,8 +142,7 @@
}
L:SetWarningLocalization{
- WarningSupercharge = "Supercarga",
- RuneofPower = "Runa de Poder en >%s<"
+ WarningSupercharge = "Supercarga"
}
L:SetTimerLocalization{
@@ -156,8 +155,7 @@
SetIconOnStaticDisruption = "Poner icono para el objetivo de Perturbación estática",
AlwaysWarnOnOverload = "Siempre avisar Sobrecarga",
PlaySoundOnOverload = "Reproducir sonido para Sobrecarga",
- PlaySoundDeathRune = "Reproducir sonido para Runa de muerte",
- RuneofPower = "Mostrar aviso especial cuando al boss le afecta Runa de poder"
+ PlaySoundDeathRune = "Reproducir sonido para Runa de muerte"
}
L:SetMiscLocalization{
@@ -147,8 +147,7 @@
WarningSupercharge = "Supercharge imminente",
RuneofDeath = "Rune de mort - BOUGEZ",
LightningTendrils = "Vrilles de foudre - COURREZ",
- Overload = "Surchage - BOUGEZ",
- RuneofPower = "Rune de puissance sur >%s<"
+ Overload = "Surchage - BOUGEZ"
}
L:SetTimerLocalization{
@@ -164,8 +163,7 @@
Overload = "Montre une alerte spéciale pour la Surcharge",
AlwaysWarnOnOverload = "Toujours alerter pour la surcharge (sinon seulement quand ciblé)",
PlaySoundOnOverload = "Joue un son à la surcharge",
- PlaySoundDeathRune = "Joue un son pour les runes de mort",
- RuneofPower = "Montre une alerte spéciale quand le boss est affecter par la Rune de puissance"
+ PlaySoundDeathRune = "Joue un son pour les runes de mort"
}
L:SetMiscLocalization{
@@ -143,8 +143,7 @@
}
L:SetWarningLocalization{
- WarningSupercharge = "전기 충전 시전",
- RuneofPower = "마력의 룬 : >%s<"
+ WarningSupercharge = "전기 충전 시전"
}
L:SetTimerLocalization{
@@ -157,8 +156,7 @@
PlaySoundLightningTendrils = "번개 덩굴일 때 소리 재생",
PlaySoundDeathRune = "죽음의 룬일 때 소리 재생",
SetIconOnOverwhelmingPower = "압도적인 힘 대상 아이콘 설정",
- SetIconOnStaticDisruption = "전자기 붕괴 대상 타겟 아이콘 설정하기(하드 모드)",
- RuneofPower = "보스가 마력의 룬의 영향을 받을 경우 특수 경고 보기"
+ SetIconOnStaticDisruption = "전자기 붕괴 대상 타겟 아이콘 설정하기(하드 모드)"
}
L:SetMiscLocalization{
@@ -141,8 +141,7 @@
}
L:SetWarningLocalization{
- WarningSupercharge = "Суперзаряд",
- RuneofPower = "Руна силы на |3-5(>%s<)"
+ WarningSupercharge = "Суперзаряд"
}
L:SetTimerLocalization{
@@ -155,8 +154,7 @@
SetIconOnStaticDisruption = "Устанавливать метки на цели заклинания Статический сбой",
AlwaysWarnOnOverload = "Всегда предупреждать при Перегрузке (иначе, только когда босс в цели)",
PlaySoundOnOverload = "Звуковой сигнал при Перегрузке",
- PlaySoundDeathRune = "Звуковой сигнал при Рунах смерти",
- RuneofPower = "Спец-предупреждение, когда босс под воздействием Руны силы"
+ PlaySoundDeathRune = "Звуковой сигнал при Рунах смерти"
}
L:SetMiscLocalization{
@@ -136,8 +136,7 @@
}
L:SetWarningLocalization{
- WarningSupercharge = "超級充能 即將到來",
- RuneofPower = "力之符文: >%s<"
+ WarningSupercharge = "超級充能 即將到來"
}
L:SetTimerLocalization{
@@ -150,8 +149,7 @@
SetIconOnStaticDisruption = "為靜電崩裂的目標設置標記",
AlwaysWarnOnOverload = "總是對超載顯示警告(否則只有當目標是風暴召喚者的時候顯示)",
PlaySoundOnOverload = "當超載施放時播放音效",
- PlaySoundDeathRune = "當死亡符文施放時播放音效",
- RuneofPower = "當首領獲得力之符文時顯示特別警告"
+ PlaySoundDeathRune = "當死亡符文施放時播放音效"
}
L:SetMiscLocalization{