Skip to content

Commit

Permalink
MawOfSouls/Harbaron: Show fragment to everyone
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Oct 1, 2016
1 parent 835592a commit 149f2d0
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions Legion/MawOfSouls/Harbaron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
local mod, CL = BigWigs:NewBoss("Harbaron", 1042, 1512)
if not mod then return end
mod:RegisterEnableMob(96754)
--mod.engageId = 1823
mod.engageId = 1823

--------------------------------------------------------------------------------
-- Initialization
Expand All @@ -17,20 +17,18 @@ function mod:GetOptions()
194216, -- Cosmic Scythe
194231, -- Summon Shackled Servitor
194668, -- Nether Rip
{198551, "SAY"}, -- Fragment
{194325, "SAY"}, -- Fragment
}
end

function mod:OnBossEnable()
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Log("SPELL_CAST_START", "SummonShackledServitor", 194231)
self:Log("SPELL_CAST_START", "NetherRip", 194668)
self:Log("SPELL_CAST_START", "Fragment", 194325)
self:Log("SPELL_AURA_APPLIED", "FragmentApplied", 198551)
self:Log("SPELL_AURA_APPLIED", "NetherRipDamage", 194235)
self:Log("SPELL_CAST_START", "CosmicScythe", 194216)

self:Log("SPELL_PERIODIC_DAMAGE", "NetherRipDamage", 194235)
self:Log("SPELL_PERIODIC_MISSED", "NetherRipDamage", 194235)
self:Death("Win", 96754)
end

function mod:OnEngage()
Expand All @@ -39,21 +37,23 @@ function mod:OnEngage()
if not self:Normal() then
self:CDBar(194668, 12.5) -- Nether Rip
end
self:CDBar(198551, 18) -- Fragment
self:CDBar(194325, 18) -- Fragment
end

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

function mod:Fragment(args)
self:Bar(198551, 34) -- Fragment
end

function mod:FragmentApplied(args)
if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Message(args.spellId, "Attention", "Warning", CL.incoming:format(args.spellName))
do
local function printTarget(self, player, guid)
if self:Me(guid) then
self:Say(194325)
end
self:TargetMessage(194325, player, "Important", "Warning")
end
function mod:Fragment(args)
self:GetBossTarget(printTarget, 0.4, args.sourceGUID)
self:CDBar(args.spellId, 30)
end
end

Expand All @@ -66,6 +66,10 @@ function mod:SummonShackledServitor(args)
self:Message(args.spellId, "Attention", "Info", CL.incoming:format(args.spellName))
end

function mod:CosmicScythe(args)
self:Message(args.spellId, "Urgent", "Alert")
end

do
local prev = 0
function mod:NetherRipDamage(args)
Expand Down

0 comments on commit 149f2d0

Please sign in to comment.