Skip to content

Commit

Permalink
SepulcherOfTheFirstOnes/ArtificerXymox: Use GetIconTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jan 16, 2024
1 parent 92e81f7 commit 2f40ff6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions SepulcherOfTheFirstOnes/ArtificerXymox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,12 @@ end
function mod:DebilitatingRay(args)
local canDo, ready = self:Interrupter(args.sourceGUID)
if canDo then
local icon = CombatLog_String_GetIcon(args.sourceRaidFlags)
self:Message(args.spellId, "yellow", icon .. args.spellName)
local icon = self:GetIconTexture(self:GetIcon(args.sourceRaidFlags))
if icon then
self:Message(args.spellId, "yellow", icon .. args.spellName)
else
self:Message(args.spellId, "yellow")
end
if ready then
self:PlaySound(args.spellId, "alert")
end
Expand Down Expand Up @@ -376,8 +380,12 @@ end
function mod:MassiveBlast(args)
local canDo, ready = self:Interrupter(args.sourceGUID)
if canDo then
local icon = CombatLog_String_GetIcon(args.sourceRaidFlags)
self:Message(365681, "purple", icon .. args.spellName)
local icon = self:GetIconTexture(self:GetIcon(args.sourceRaidFlags))
if icon then
self:Message(365681, "purple", icon .. args.spellName)
else
self:Message(365681, "purple")
end
if self:Tank() then
self:PlaySound(365681, "alarm")
elseif ready then
Expand Down

0 comments on commit 2f40ff6

Please sign in to comment.