Skip to content

Commit

Permalink
update widget:UnitDestroyed to include attackerID, attackerDefID, and…
Browse files Browse the repository at this point in the history
… attackerTeam (#4256)
  • Loading branch information
Varunda authored Jan 30, 2025
1 parent a43a1d9 commit 75a86df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luaui/barwidgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2262,11 +2262,11 @@ function widgetHandler:UnitFromFactory(unitID, unitDefID, unitTeam, factID, fact
return
end

function widgetHandler:UnitDestroyed(unitID, unitDefID, unitTeam)
function widgetHandler:UnitDestroyed(unitID, unitDefID, unitTeam, attackerID, attackerDefID, attackerTeam, weaponDefID)
widgetHandler:MetaUnitRemoved(unitID, unitDefID, unitTeam)
tracy.ZoneBeginN("W:UnitDestroyed")
for _, w in ipairs(self.UnitDestroyedList) do
w:UnitDestroyed(unitID, unitDefID, unitTeam)
w:UnitDestroyed(unitID, unitDefID, unitTeam, attackerID, attackerDefID, attackerTeam, weaponDefID)
end
tracy.ZoneEnd()
return
Expand Down

0 comments on commit 75a86df

Please sign in to comment.