Skip to content

Commit

Permalink
Fix enchant events
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Apr 13, 2024
1 parent 812debd commit 9943e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion Code/CombatEvents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,6 @@ function module:RegisterCombatEvent(data)
tinsert(combatLogEvents[eventType], {
category = category,
name = data.name,
infofunc = v.func,
checkfunc = check,
}
)
Expand Down
15 changes: 3 additions & 12 deletions Data/Auras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ Parrot:RegisterCombatEvent{
--[[============================================================================
-- Target's Auras
--============================================================================]]

Parrot:RegisterCombatEvent{
category = "Notification",
subCategory = L["Auras"],
Expand Down Expand Up @@ -486,14 +487,6 @@ Parrot:RegisterCombatEvent{
--[[============================================================================
-- Item Buffs
--============================================================================]]
local function parseItembuff(srcGUID, srcName, srcFlags, dstGUID, dstName,
dstFlags, spellName, itemId, itemName)
local info = newList()
info.itemId = itemId
info.abilityName = spellName
info.itemName = itemName
return info
end

Parrot:RegisterCombatEvent{
category = "Notification",
Expand All @@ -506,14 +499,13 @@ Parrot:RegisterCombatEvent{
check = function(_, _, _, dstGUID)
return dstGUID == playerGUID
end,
func = parseItembuff,
},
},
tagTranslations = {
Name = "abilityName",
ItemName = "itemName",
Icon = function(info)
return GetItemIcon(info.itemId)
return GetItemIcon(info.itemID)
end,
},
tagTranslationsHelp = {
Expand All @@ -534,14 +526,13 @@ Parrot:RegisterCombatEvent{
check = function(_, _, _, dstGUID)
return dstGUID == playerGUID
end,
func = parseItembuff,
},
},
tagTranslations = {
Name = "abilityName",
ItemName = "itemName",
Icon = function(info)
return GetItemIcon(info.itemId)
return GetItemIcon(info.itemID)
end,
},
tagTranslationsHelp = {
Expand Down

0 comments on commit 9943e33

Please sign in to comment.