Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jan 17, 2024
1 parent 7309698 commit 4b5da9c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
22 changes: 17 additions & 5 deletions BlackTemple/Illidan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ function mod:OnBossEnable()

self:RegisterEvent("CHAT_MSG_MONSTER_YELL")

self:Log("SPELL_DAMAGE", "Damage", 40841, 40611, 40018, 40030) -- Flame Crash, Blaze, Eye Blast, Demon Fire (Eye Blast)
self:Log("SPELL_MISSED", "Damage", 40841, 40611, 40018, 40030) -- Flame Crash, Blaze, Eye Blast, Demon Fire (Eye Blast)
self:Log("SPELL_DAMAGE", "DemonFireDamage", 40030) -- Demon Fire (Eye Blast)
self:Log("SPELL_MISSED", "DemonFireDamage", 40030) -- Demon Fire (Eye Blast)
self:Log("SPELL_DAMAGE", "Damage", 40841, 40611, 40018) -- Flame Crash, Blaze, Eye Blast
self:Log("SPELL_MISSED", "Damage", 40841, 40611, 40018) -- Flame Crash, Blaze, Eye Blast
end

function mod:OnEngage()
Expand Down Expand Up @@ -304,12 +306,22 @@ function mod:CHAT_MSG_MONSTER_YELL(_, msg)
end
end

do
local prev = 0
function mod:DemonFireDamage(args) -- Demon Fire (Eye Blast)
if self:Me(args.destGUID) and args.time-prev > 1.5 then
prev = args.time
self:MessageOld(40018, "blue", "alert", CL.underyou:format(self:SpellName(40018)))
end
end
end

do
local prev = 0
function mod:Damage(args)
if self:Me(args.destGUID) and GetTime()-prev > 1.5 then
prev = GetTime()
self:MessageOld(args.spellId == 40030 and 40018 or args.spellId, "blue", "alert", CL.underyou:format(args.spellId == 40030 and self:SpellName(40018) or args.spellName))
if self:Me(args.destGUID) and args.time-prev > 1.5 then
prev = args.time
self:MessageOld(args.spellId, "blue", "alert", CL.underyou:format(args.spellName))
end
end
end
2 changes: 1 addition & 1 deletion BlackTemple/ShadeOfAkama.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ function mod:OnBossEnable()
self:Log("SPELL_PERIODIC_DAMAGE", "RainOfFireDamage", 42023)
self:Log("SPELL_PERIODIC_MISSED", "RainOfFireDamage", 42023)

self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT")
self:RegisterEvent("CHAT_MSG_MONSTER_YELL")
end
end

function mod:OnEngage()
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT")
self:MessageOld("stages", "cyan", "info", L.engaged, false)
self:Bar("stages", 13, L.defender, 159241) -- ability_parry / icon 132269
self:ScheduleTimer("Bar", 13, "stages", 32, L.defender, 159241)
Expand Down
2 changes: 1 addition & 1 deletion Karazhan/ShadeOfAran.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ do
inWreath[#inWreath + 1] = args.destName
if not scheduled then
scheduled = true
self:Bar(30004, 21, L["flame_bar"], args.spellId)
self:Bar(30004, 21, args.spellName, args.spellId)
self:ScheduleTimer(wreathWarn, 0.4, args.spellId)
end
end
Expand Down
1 change: 0 additions & 1 deletion Serpentshrine/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ if L then
--L.naga_bar = "~Naga"
--L.naga_soon_message = "Naga soon!"

--L.barrier = mod:SpellName(38112)
--L.barrier_desc = "Alert when the barriers go down."
--L.barrier_down_message = "Barrier %d/4 down!"
end
Expand Down
1 change: 0 additions & 1 deletion Serpentshrine/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ if L then
--L.naga_bar = "~Naga"
--L.naga_soon_message = "Naga soon!"

--L.barrier = mod:SpellName(38112)
--L.barrier_desc = "Alert when the barriers go down."
--L.barrier_down_message = "Barrier %d/4 down!"
end
Expand Down

0 comments on commit 4b5da9c

Please sign in to comment.