-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Classic/Deadmines/Sneed: Add boss module (#1234)
- Loading branch information
Showing
3 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,62 @@ | ||
if BigWigsLoader.isRetail and select(4, GetBuildInfo()) < 110005 then return end -- XXX remove check when 11.0.5 is live | ||
-------------------------------------------------------------------------------- | ||
-- Module Declaration | ||
-- | ||
|
||
local mod, CL = BigWigs:NewBoss("Sneed", 36, 2626) | ||
if not mod then return end | ||
mod:RegisterEnableMob(643) -- Sneed | ||
mod:RegisterEnableMob( | ||
642, -- Sneed's Shredder | ||
643 -- Sneed | ||
) | ||
mod:SetEncounterID(mod:Retail() and 2968 or 2742) | ||
--mod:SetRespawnTime(0) | ||
mod:SetStage(1) | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Initialization | ||
-- | ||
|
||
function mod:GetOptions() | ||
return { | ||
|
||
-- Sneed's Shredder | ||
7399, -- Terrify | ||
5141, -- Eject Sneed | ||
-- Sneed | ||
6713, -- Disarm | ||
} | ||
end | ||
|
||
function mod:OnBossEnable() | ||
if self:Retail() then | ||
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames | ||
end | ||
self:Log("SPELL_CAST_SUCCESS", "Terrify", 7399) | ||
self:Log("SPELL_CAST_SUCCESS", "EjectSneed", 5141) | ||
self:Log("SPELL_CAST_SUCCESS", "Disarm", 6713) | ||
end | ||
|
||
function mod:OnEngage() | ||
self:SetStage(1) | ||
self:CDBar(7399, 0.8) -- Terrify | ||
end | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Event Handlers | ||
-- | ||
|
||
function mod:ENCOUNTER_START(_, id) -- XXX no boss frames | ||
if id == self.engageId then | ||
self:Engage() | ||
end | ||
function mod:Terrify(args) | ||
self:Message(args.spellId, "yellow") | ||
self:CDBar(args.spellId, 10.9) | ||
self:PlaySound(args.spellId, "info") | ||
end | ||
|
||
function mod:EjectSneed(args) | ||
self:StopBar(7399) -- Terrify | ||
self:SetStage(2) | ||
self:Message(args.spellId, "cyan") | ||
self:CDBar(6713, 4.0) -- Disarm | ||
self:PlaySound(args.spellId, "long") | ||
end | ||
|
||
function mod:Disarm(args) | ||
self:Message(args.spellId, "purple") | ||
self:CDBar(args.spellId, 70.2) | ||
self:PlaySound(args.spellId, "alert") | ||
end |