mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
- 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:
@ -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
|
||||
|
Reference in New Issue
Block a user