/
end |
if not found then return; end |
end |
--VFL.print("call AddCooldown " .. spellid .. " " .. cd_possi[spellid]); |
-- see if a existing schedule exist |
if not cd_avail[spellid] then VFLT.unschedulePattern(name..spellid); end |
end |
-- schedule the remove |
VFLT.scheduleNamed(name..spellid, cd_possi[spellid], function() x:RemoveCooldown(spellid); end); |
VFLT.scheduleNamed(name..spellid, timeleft or cd_possi[spellid], function() x:RemoveCooldown(spellid); end); |
-- update |
if x.nid then |