You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
-------------------------------------------------------------------------------
|
|
-- Module Declaration
|
|
|
|
local mod, CL = BigWigs:NewBoss("Eadric the Pure", 650, 635)
|
|
if not mod then return end
|
|
mod:RegisterEnableMob(35119)
|
|
-- mod.engageId = 2023 -- doesn't fire ENCOUNTER_END on a wipe, also shares it with Paletress
|
|
|
|
-------------------------------------------------------------------------------
|
|
-- Initialization
|
|
|
|
function mod:GetOptions()
|
|
return {
|
|
66935, -- Radiance
|
|
}
|
|
end
|
|
|
|
function mod:OnBossEnable()
|
|
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
|
|
|
|
self:Log("SPELL_CAST_START", "Radiance", 66935)
|
|
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1")
|
|
end
|
|
|
|
function mod:VerifyEnable(unit) -- becomes friendly after being defeated
|
|
return UnitCanAttack("player", unit)
|
|
end
|
|
|
|
-------------------------------------------------------------------------------
|
|
-- Event Handlers
|
|
|
|
function mod:Radiance(args)
|
|
self:MessageOld(args.spellId, "orange", nil, CL.casting:format(args.spellName))
|
|
self:CastBar(args.spellId, 3)
|
|
end
|
|
|
|
function mod:UNIT_SPELLCAST_SUCCEEDED(_, _, _, spellId)
|
|
if spellId == 43979 then -- Full Heal
|
|
self:Win()
|
|
end
|
|
end
|
|
|