Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algalon phase punch timer fix #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion Ulduar/Algalon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ mod:SetEncounterID(mod:Classic() and 757 or 1130)
--

local blackholes = 0
local isPhase2 = false
local difficulty = GetRaidDifficultyID()

--------------------------------------------------------------------------------
-- Initialization
Expand All @@ -35,10 +37,12 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "CosmicSmash", 62301, 64598) -- Seems to be 62301 (which doens't have an icon)
self:Log("SPELL_CAST_SUCCESS", "BlackHoleExplosion", 64122, 65108) -- Seems to be 65108
self:Log("SPELL_CAST_START","BigBang", 64443, 64584)
self:BossYell("phase2", "Behold the tools of creation!")
end

function mod:OnEngage()
blackholes = 0
isPhase2 = false

self:RegisterEvent("UNIT_TARGETABLE_CHANGED")
--self:Bar("stages", 8+offset, CL["phase"]:format(1), "INV_Gizmo_01") -- XXX FIXME
Expand Down Expand Up @@ -67,8 +71,19 @@ function mod:UNIT_HEALTH(event, unit)
end
end

function mod:phase2(args)
if difficulty == 4 then
self:Bar(64412, 15)
end
isPhase2 = true
end

function mod:PhasePunch(args)
self:Bar(args.spellId, 15)
if isPhase2 and difficulty == 4 then
self:Bar(args.spellId, 10)
else
self:Bar(args.spellId, 15)
end
end

function mod:PhasePunchCount(args)
Expand Down