- fix issues with [AFK] and [Dead] not picking up properly.

This commit is contained in:
ckknight
2008-03-28 15:36:03 +00:00
parent 267f117530
commit a87c215fff
2 changed files with 18 additions and 4 deletions

View File

@ -127,12 +127,16 @@ local function refreshGUID(unit)
unitToGUID[unit] = UnitGUID(unit)
end
DogTag:AddEventHandler("PARTY_MEMBERS_CHANGED", function()
local function PARTY_MEMBERS_CHANGED()
for unit in pairs(IsNormalUnit) do
refreshGUID(unit)
DogTag:FireEvent("UnitChanged", unit)
end
end)
end
DogTag:AddEventHandler("PARTY_MEMBERS_CHANGED", PARTY_MEMBERS_CHANGED)
PARTY_MEMBERS_CHANGED()
DogTag:AddEventHandler("PLAYER_LOGIN", PARTY_MEMBERS_CHANGED)
local t = {}
local function IterateUnitsWithGUID(guid)