Skip to content

Commit

Permalink
Interrupt announcer: output the spell link of the spell you interrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Jul 26, 2019
1 parent 28ac74d commit fcb6480
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Components/InterruptAnnounce.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ local function printFormattedString(t, sid, spell, ss, ssid)
local ChatChannel = SUI.DB.InterruptAnnouncer.announceLocation

msg =
msg:gsub('%%t', t):gsub('%%spell', spell):gsub('%%cl', CombatLog_String_SchoolString(ss)):gsub(
'%%lnk',
GetSpellLink(sid)
):gsub('%%myspell', GetSpellLink(ssid))
msg:gsub('%%t', t):gsub('%%cl', CombatLog_String_SchoolString(ss)):gsub('%%spell', GetSpellLink(sid)):gsub(
'%%myspell',
GetSpellLink(ssid)
)
if ChatChannel == 'SELF' then
SUI:Print(msg)
else
Expand Down Expand Up @@ -70,7 +70,7 @@ function module:OnInitialize()
includePets = true,
FirstLaunch = true,
announceLocation = 'SMART',
text = 'interrupted %t %spell'
text = 'Interrupted %t %spell'
}
if not SUI.DB.InterruptAnnouncer then
SUI.DB.InterruptAnnouncer = Defaults
Expand Down Expand Up @@ -370,7 +370,6 @@ function module:FirstLaunch()

-- Active locations
StdUi:GlueBelow(IAnnounce.lblActive, IAnnounce.lblAnnouncetext, -120, 0)


-- Defaults
IAnnounce.modEnabled:SetChecked(SUI.DB.EnabledComponents.InterruptAnnouncer)
Expand Down

0 comments on commit fcb6480

Please sign in to comment.