Skip to content

Commit

Permalink
fix(core): tooltip.info is now tooltip.processingInfo
Browse files Browse the repository at this point in the history
Fixes #417
  • Loading branch information
Rainrider committed May 6, 2023
1 parent f3a92dc commit 39a8db7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/DebugTooltip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,23 @@ TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item, function(tool
end)

TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Macro, function(tooltip, data)
AddActionInfo(tooltip, unpack(tooltip.info.getterArgs))
AddActionInfo(tooltip, unpack(tooltip.processingInfo.getterArgs))
end)

TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.PetAction, function(tooltip, data)
AddPetActionInfo(tooltip, unpack(tooltip.info.getterArgs))
AddPetActionInfo(tooltip, unpack(tooltip.processingInfo.getterArgs))
end)

TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Spell, function(tooltip, data)
local source = sources[tooltip.info.getterName] or 'spell'
local getterName = tooltip.processingInfo and tooltip.processingInfo.getterName
local source = getterName and sources[getterName] or 'spell'

AddSpellInfo(tooltip, source, data.id, true)
end)

TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.UnitAura, function(tooltip, data)
local id = spellIdGetters[tooltip.info.getterName](tooltip.info.getterArgs)
local info = tooltip.processingInfo
local id = spellIdGetters[info.getterName](info.getterArgs)

AddSpellInfo(tooltip, 'aura', id, true)
end)

0 comments on commit 39a8db7

Please sign in to comment.