Add support for new boss[1-4] UnitIDs.

This commit is contained in:
pneumatus
2009-12-30 21:44:28 +00:00
parent ae13b67032
commit 364a14e6e3

View File

@ -116,9 +116,11 @@ for i = 1, 4 do
IsLegitimateUnit["party" .. i] = true
IsLegitimateUnit["partypet" .. i] = true
IsLegitimateUnit["party" .. i .. "pet"] = true
IsLegitimateUnit["boss" .. i] = true
IsNormalUnit["party" .. i] = true
IsNormalUnit["partypet" .. i] = true
IsNormalUnit["party" .. i .. "pet"] = true
IsNormalUnit["boss" .. i] = true
WACKY_UNITS["party" .. i .. "target"] = true
WACKY_UNITS["partypet" .. i .. "target"] = true
WACKY_UNITS["party" .. i .. "pettarget"] = true
@ -414,6 +416,13 @@ DogTag:AddEventHandler("Unit", "UPDATE_MOUSEOVER_UNIT", function(event, ...)
DogTag:FireEvent("UnitChanged", "mouseover")
end)
DogTag:AddEventHandler("Unit", "INSTANCE_ENCOUNTER_ENGAGE_UNIT", function(event, ...)
for i = 1, 4 do
refreshGUID("boss"..i)
DogTag:FireEvent("UnitChanged", "boss"..i)
end
end)
local fsToKwargs = DogTag.fsToKwargs
local fsToNSList = DogTag.fsToNSList
local fsNeedUpdate = DogTag.fsNeedUpdate