from retail

This commit is contained in:
NoM0Re
2025-01-17 17:01:24 +01:00
parent c4205b0c29
commit b900520d5f
3 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -2553,9 +2553,9 @@ function BuffTrigger.SetToolTip(trigger, state)
return false
end
if state.filter == "HELPFUL" then
GameTooltip:SetUnitBuff(state.unit, state.index)
GameTooltip:SetUnitBuff(state.unit, state.index, state.filter)
elseif state.filter == "HARMFUL" then
GameTooltip:SetUnitDebuff(state.unit, state.index)
GameTooltip:SetUnitDebuff(state.unit, state.index, state.filter)
end
return true
end
+2 -2
View File
@@ -3817,7 +3817,7 @@ Private.event_prototypes = {
nameFunc = function(trigger)
local item = GetInventoryItemID("player", trigger.itemSlot or 0);
if (item) then
return GetItemInfo(item);
return (GetItemInfo(item))
end
end,
stacksFunc = function(trigger)
@@ -6756,7 +6756,7 @@ Private.event_prototypes = {
}
},
nameFunc = function(trigger)
return GetSpellInfo(trigger.spellId or 0)
return (GetSpellInfo(trigger.spellId or 0))
end,
iconFunc = function(trigger)
local _, _, icon = GetSpellInfo(trigger.spellId or 0);
+4 -6
View File
@@ -300,13 +300,11 @@ local function BuildUidMap(data, children, type)
-- index, total, parentIsDynamicGroup: helpers that transport data between phase 1 and 2
},
type = type -- Either old or new, only used for error checking
-- root: uid of the root
-- totalCount: count of members
-- idToUid maps from id to uid
type = type, -- Either old or new, only used for error checking
root = data.uid, -- root: uid of the root
totalCount = #children + 1, -- totalCount: count of members
idToUid = {} -- idToUid maps from id to uid
}
uidMap.root = data.uid
uidMap.totalCount = #children + 1
-- Build helper map from id to uid
local idToUid = {}