Skip to content

Commit

Permalink
fix spell's get on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and InfusOnWoW committed Sep 10, 2023
1 parent 68b6d98 commit 9f0c3d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WeakAurasOptions/LoadOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum
if arg.negativeIsEJ and WeakAuras.IsRetail() and spellID < 0 then
local tbl = C_EncounterJournal.GetSectionInfo(-spellID)
if tbl and tbl.title then
return ("%s (%s)"):format(spellID, tbl.title) .. "\0" .. (trigger[realname] or "")
return ("%s (%s)"):format(spellID, tbl.title) .. "\0" .. value
end
end
local spellName = GetSpellInfo(WeakAuras.SafeToNumber(trigger[realname]))
if spellName then
return ("%s (%s)"):format(spellID, spellName) .. "\0" .. (trigger[realname] or "")
return ("%s (%s)"):format(spellID, spellName) .. "\0" .. value
end
elseif not useExactSpellId then
local spellName = GetSpellInfo(trigger[realname])
Expand Down

0 comments on commit 9f0c3d9

Please sign in to comment.