From d697e6929d9812a3272f75409bdf57ec1a7005d0 Mon Sep 17 00:00:00 2001 From: jeffi Date: Thu, 7 Mar 2024 20:12:04 -0600 Subject: [PATCH] Update `ObjectID` and `WowGameObject:id()` returns. --- Tinkr.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tinkr.lua b/Tinkr.lua index 3aeb16d..5dc247b 100644 --- a/Tinkr.lua +++ b/Tinkr.lua @@ -8,7 +8,7 @@ ---@class WowGameObject : userdata ---@field unit fun(): UnitIds ---@field guid fun(): string ----@field id fun(): ...:number +---@field id fun(): number | boolean, ...: number|nil ---@alias TinkrObjectReference WowGameObject | UnitIds @@ -1713,7 +1713,7 @@ local TinkrObjects = { ---Returns the NPC ID of a WowGameObject. ---@param objectRef TinkrObjectReference - ---@return number | false + ---@return (number | boolean), (number?) ... ObjectID = function(objectRef) end, ---Check if a WowGameObject is outside (AKA not in a cave).