Skip to content

Commit

Permalink
AssaultOnVioletHold/Shivermaw: Initial module
Browse files Browse the repository at this point in the history
  • Loading branch information
elvador committed Sep 7, 2016
1 parent 44303d9 commit 7a6cbed
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 8 deletions.
79 changes: 73 additions & 6 deletions Legion/AssaultOnVioletHold/Shivermaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,102 @@
local mod, CL = BigWigs:NewBoss("Shivermaw", 1066, 1694)
if not mod then return end
mod:RegisterEnableMob(101951)
--mod.engageId = 1845
mod.engageId = 1845

--------------------------------------------------------------------------------
-- Locals
--

local frostBreathCount = 1
local stormCount = 1
local buffetCount = 1

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {
153764, -- Claws of Argus
{153392, "FLASH", "ICON", "PROXIMITY"}, -- Curtain of Flame
201379, -- Frost Breath
201672, -- Relentless Storm
201354, -- Tail Sweep
201355, -- Wing Buffet
{202062, "PROXIMITY"}, -- Frigid Winds
201960, -- Ice Bomb
}
end

function mod:OnBossEnable()
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")

self:Death("Win", 101951)
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1")
self:Log("SPELL_CAST_SUCCESS", "FrostBreath", 201379)
self:Log("SPELL_CAST_START", "RelentlessStorm", 201672)
self:Log("SPELL_CAST_SUCCESS", "TailSweep", 201354)
self:Log("SPELL_CAST_START", "FrigidWindsCast", 202062)
self:Log("SPELL_AURA_APPLIED", "FrigidWindsApplied", 202062)
self:Log("SPELL_AURA_REMOVED", "FrigidWindsRemoved", 202062)
self:Log("SPELL_CAST_START", "IceBomb", 201960)
end

function mod:OnEngage()
frostBreathCount = 1
stormCount = 1
buffetCount = 1

self:Bar(201379, 5) -- Frost Breath
self:Bar(201672, 9) -- Relentless Storm
self:Bar(201354, 17) -- Tail Sweep
self:Bar(201355, 20.5) -- Wing Buffet
self:CDBar(201960, 47) -- Ice Bomb
end

--------------------------------------------------------------------------------
-- Event Handlers
--

function mod:UNIT_SPELLCAST_SUCCEEDED(_, _, _, _, spellId)
if spellId == 201355 then -- Wing Buffet
self:Message(spellId, "Urgent", "Alert")
buffetCount = buffetCount + 1
self:Bar(spellId, buffetCount % 2 == 0 and 18 or 43)
end
end

function mod:FrostBreath(args)
self:Message(args.spellId, "Attention", self:Tank() and "Warning")
frostBreathCount = frostBreathCount + 1
self:Bar(args.spellId, frostBreathCount % 2 == 0 and 26 or 35)
end

function mod:RelentlessStorm(args)
self:Message(args.spellId, "Important", "Long")
stormCount = stormCount + 1
self:Bar(args.spellId, stormCount % 2 == 0 and 14 or 47)
end

function mod:TailSweep(args)
self:Message(args.spellId, "Urgent", "Alarm")
self:Bar(args.spellId, 61)
end

function mod:FrigidWindsCast(args)
self:Message(args.spellId, "Important", "Warning")
self:Bar(args.spellId, 61)
end

function mod:FrigidWindsApplied(args)
if self:Me(args.destGUID) then
self:OpenProximity(args.spellId, 8)
self:TargetBar(args.spellId, 18, args.destName)
end
end

function mod:FrigidWindsRemoved(args)
if self:Me(args.destGUID) then
self:CloseProximity(args.spellId)
end
end

function mod:IceBomb(args)
self:Message(args.spellId, "Neutral", "Info")
self:Bar(args.spellId, 59)
end
4 changes: 2 additions & 2 deletions Legion/AssaultOnVioletHold/modules.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">

<!--<Script file="Shivermaw.lua"/>
<Script file="Thalena.lua"/>
<Script file="Shivermaw.lua"/>
<!--<Script file="Thalena.lua"/>
<Script file="Festerface.lua"/>
<Script file="MillificentManastorm.lua"/>
<Script file="Kaahrj.lua"/>
Expand Down

0 comments on commit 7a6cbed

Please sign in to comment.