from retail
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user