16 lines
931 B
Lua
16 lines
931 B
Lua
-- Twin Golems Basalthar/Smoldaris (Octo BigWigs Raids/MC/TwinGolems.lua), Turtle MC, native server events.
|
|
-- Molten Bulwark 47375 moves between the golems; when it fades from one, switch to that one.
|
|
local L = {msg_switch = "SWITCH to %s", bar_bulwark = "%s Bulwark"}
|
|
local BULWARK, ICON = 15, "ability_mage_moltenarmor"
|
|
local m = OctoBossMods:NewModule("Twin Golems", {npcs = {65020, 65021}, killNpcs = {65020, 65021}, displayName = "Twin Golems",
|
|
zone = "Molten Core"})
|
|
function m:BulwarkGain(_, _, _, dstName)
|
|
if dstName then self:Bar(format(L.bar_bulwark, dstName), BULWARK, ICON, true, "Red") end
|
|
end
|
|
function m:BulwarkFade(_, _, _, dstName)
|
|
if not dstName then return end
|
|
self:RemoveBar(format(L.bar_bulwark, dstName))
|
|
self:Message(format(L.msg_switch, dstName), "Attention", true, "Alert")
|
|
end
|
|
m.events = {SPELL_AURA_APPLIED = {[47375] = "BulwarkGain"}, SPELL_AURA_REMOVED = {[47375] = "BulwarkFade"}}
|