Skip to content

Commit

Permalink
Update say API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jul 5, 2024
1 parent 8c9f156 commit 8c15e8e
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions BlackTemple/Gurtogg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function mod:FelRage(args)
self:StopBar(40508) -- Fel-Acid Breath

if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Say(args.spellId, nil, nil, "Fel Rage")
end
self:PrimaryIcon(args.spellId, args.destName)
self:TargetMessageOld(args.spellId, args.destName, "orange", "warning", nil, nil, true)
Expand All @@ -97,7 +97,7 @@ end
do
local function printTarget(self, player, guid)
if self:Me(guid) then
self:Say(40508, 18609) -- 18609 = "Breath"
self:Say(40508, CL.breath, nil, "Breath")
end
self:TargetMessageOld(40508, player, "red", "alert")
self:PrimaryIcon(40508, player)
Expand Down
6 changes: 3 additions & 3 deletions BlackTemple/Illidan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function mod:CheckForFixate(_, unit, guid)
local mobId = self:MobId(guid)
if mobId == 23498 and not fixateList[guid] and self:Me(self:UnitGUID(unit.."target")) then -- Parasitic Shadowfiend
fixateList[guid] = true
self:Say(41917, 41951) -- 41951 = "Fixate"
self:Say(41917, CL.fixate, nil, "Fixate")
self:MessageOld(41917, "blue", "long", CL.you:format(self:SpellName(41951)), 41951)
end
end
Expand All @@ -150,15 +150,15 @@ function mod:ParasiticShadowfiend(args)
self:PrimaryIcon(args.spellId, args.destName)
self:TargetBar(args.spellId, 10, args.destName, 36469, args.spellId) -- 36469 = "Parasite"
if self:Me(args.destGUID) then
self:Say(args.spellId, 36469) -- 36469 = "Parasite"
self:Say(args.spellId, CL.parasite, nil, "Parasite")
end
end

function mod:ParasiticShadowfiendFailure(args) -- The parasite reached someone new before it was killed
self:TargetMessageOld(41917, args.destName, "yellow")
self:TargetBar(41917, 10, args.destName, 36469, 41917) -- 36469 = "Parasite"
if self:Me(args.destGUID) then
self:Say(41917, 36469) -- 36469 = "Parasite"
self:Say(41917, CL.parasite, nil, "Parasite")
end
end

Expand Down
2 changes: 1 addition & 1 deletion BlackTemple/Najentus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ end

function mod:ImpalingSpine(args)
if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Say(args.spellId, nil, nil, "Impaling Spine")
end
self:TargetMessageOld(args.spellId, args.destName, "red", "warning", nil, nil, true)
self:PrimaryIcon(args.spellId, args.destName)
Expand Down
2 changes: 1 addition & 1 deletion BlackTemple/Shahraz.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function mod:FatalAttraction(args)
playerList[#playerList+1] = args.destName

if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Say(args.spellId, nil, nil, "Fatal Attraction")
self:OpenProximity(args.spellId, 15)
end

Expand Down
4 changes: 2 additions & 2 deletions BlackTemple/Supremus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ function mod:FixateScan()
fixateTarget = target

if self:Me(self:UnitGUID(targetUnit)) then
self:Say("fixate", CL.fixate)
self:Say("fixate", CL.fixate, nil, "Fixate")
end
self:TargetMessageOld("fixate", target, "red", "warning", CL.fixate, L.fixate_icon)
self:PrimaryIcon("fixate", target)
end

function mod:Fixate(args)
if self:Me(args.destGUID) then
self:Say("fixate", CL.fixate)
self:Say("fixate", CL.fixate, nil, "Fixate")
end
self:TargetMessageOld("fixate", args.destName, "red", "warning", L.fixate, L.fixate_icon)
self:PrimaryIcon("fixate", args.destName)
Expand Down
2 changes: 1 addition & 1 deletion Hyjal/Archimonde.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ do
self:PrimaryIcon(32014, name)
self:ScheduleTimer("PrimaryIcon", 5, 32014)
if self:Me(guid) then
self:Say(32014)
self:Say(32014, nil, nil, "Air Burst")
end
end

Expand Down
2 changes: 1 addition & 1 deletion Sunwell/Brutallus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function mod:BurnApplied(args)
self:Bar(args.spellId, 20)
self:DelayedMessage(args.spellId, 16, "yellow", CL.soon:format(args.spellName))
if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Say(args.spellId, nil, nil, "Burn")
sayTimer1 = self:ScheduleTimer("Say", 50, args.spellId, 10, true)
sayTimer2 = self:ScheduleTimer("Say", 55, args.spellId, 5, true)
self:OpenProximity(args.spellId, 5) -- spread distance is 2 yards
Expand Down
2 changes: 1 addition & 1 deletion Sunwell/KilJaeden.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function mod:FireBloom(args)
self:ScheduleTimer("TargetMessageOld", 0.3, args.spellId, playerList, "red", "warning")
end
if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Say(args.spellId, nil, nil, "Fire Bloom")
end
self:CustomIcon(fireBloomMarker, args.destName, #playerList)
end
Expand Down
4 changes: 2 additions & 2 deletions Sunwell/Twins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ do
self:TargetMessageOld(45342, name, "yellow", "warning")
self:PrimaryIcon(45342, name)
if self:Me(guid) then
self:Say(45342)
self:Say(45342, nil, nil, "Conflagration")
end
end

Expand All @@ -184,7 +184,7 @@ do
self:TargetMessageOld(45329, name, "red", "long", nil, nil, true)
self:SecondaryIcon(45329, name)
if self:Me(guid) then
self:Say(45329)
self:Say(45329, nil, nil, "Shadow Nova")
end
end

Expand Down
2 changes: 1 addition & 1 deletion TheEye/Reaver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function mod:Orb(args)
self:TargetMessageOld(args.spellId, args.destName, "yellow", "alert")
self:PrimaryIcon(args.spellId, args.destName)
if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Say(args.spellId, nil, nil, "Arcane Orb")
end
end

0 comments on commit 8c15e8e

Please sign in to comment.