Skip to content

Commit

Permalink
StormCliffs_Classic/Azuregos: Compensate for early removal of Reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jul 22, 2024
1 parent 4215f8d commit 8043244
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 deletions.
26 changes: 15 additions & 11 deletions StormCliffs_Classic/Azuregos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,22 @@ end
-- Event Handlers
--

function mod:ReflectionApplied(args)
self:StopBar(args.spellName)
self:Message(args.spellId, "red")
self:CastBar(args.spellId, 10)
self:PlaySound(args.spellId, "warning")
end
do
local prev = 0
function mod:ReflectionApplied(args)
prev = args.time
self:StopBar(args.spellName)
self:Message(args.spellId, "red")
self:CastBar(args.spellId, 10)
self:PlaySound(args.spellId, "warning")
end

function mod:ReflectionRemoved(args)
self:StopBar(CL.cast:format(args.spellName))
self:Message(args.spellId, "green", CL.over:format(args.spellName), nil, true) -- Disable emphasize
self:CDBar(args.spellId, 10)
self:PlaySound(args.spellId, "info")
function mod:ReflectionRemoved(args)
self:StopBar(CL.cast:format(args.spellName))
self:Message(args.spellId, "green", CL.over:format(args.spellName), nil, true) -- Disable emphasize
self:CDBar(args.spellId, prev > 0 and (20 - (args.time-prev)) or 10) -- Show the bar after it ends
self:PlaySound(args.spellId, "info")
end
end

function mod:ArcaneVacuum(args)
Expand Down
25 changes: 15 additions & 10 deletions World_Classic/Azuregos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,22 @@ end
-- Event Handlers
--

function mod:ReflectionApplied(args)
self:StopBar(args.spellName)
self:Message(args.spellId, "red")
self:CastBar(args.spellId, 10)
self:PlaySound(args.spellId, "warning")
end
do
local prev = 0
function mod:ReflectionApplied(args)
prev = args.time
self:StopBar(args.spellName)
self:Message(args.spellId, "red")
self:CastBar(args.spellId, 10)
self:PlaySound(args.spellId, "warning")
end

function mod:ReflectionRemoved(args)
self:StopBar(CL.cast:format(args.spellName))
self:Message(args.spellId, "green", CL.over:format(args.spellName), nil, true) -- Disable emphasize
self:PlaySound(args.spellId, "info")
function mod:ReflectionRemoved(args)
self:StopBar(CL.cast:format(args.spellName))
self:Message(args.spellId, "green", CL.over:format(args.spellName), nil, true) -- Disable emphasize
self:CDBar(args.spellId, prev > 0 and (20 - (args.time-prev)) or 10) -- Show the bar after it ends
self:PlaySound(args.spellId, "info")
end
end

function mod:ArcaneVacuum(args)
Expand Down

0 comments on commit 8043244

Please sign in to comment.