- fix a bug which caused all fontstrings to be seen as wacky units.

- set the wacky unit update time to 0.5 instead of 0.25
This commit is contained in:
ckknight
2008-06-25 00:00:16 +00:00
parent 472031201c
commit 49901418e4

View File

@ -340,7 +340,7 @@ DogTag:AddTimerHandler("Unit", function(num, currentTime)
DogTag:FireEvent("UnitChanged", "mouseover")
end
if currentTime >= nextUpdateWackyUnitsTime then
nextUpdateWackyUnitsTime = currentTime + 0.25
nextUpdateWackyUnitsTime = currentTime + 0.5
DogTag:FireEvent("UpdateWackyUnits")
for fs, nsList in pairs(fsToNSList) do
if nsListHasUnit[nsList] then
@ -373,7 +373,8 @@ DogTag:AddCompilationStep("Unit", "tagevents", function(ast, t, u, tag, tagData,
events["UnitChanged#$unit"] = true
events["PARTY_MEMBERS_CHANGED"] = true
events["PLAYER_ENTERING_WORLD"] = true
if kwargs["unit"] ~= extraKwargs and (type(kwargs["unit"]) ~= "string" or not IsNormalUnit[kwargs["unit"]]) then
local kwargs_unit = kwargs["unit"]
if (type(kwargs_unit) ~= "table" or kwargs_unit[1] ~= "kwarg" or kwargs_unit[2] ~= "unit") and kwargs_unit ~= extraKwargs and (type(kwargs_unit) ~= "string" or not IsNormalUnit[kwargs_unit]) then
events["UpdateWackyUnits"] = true
end
end