From 46f33a9c65ae6a4526086fd88f631f137a35edd6 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Thu, 26 Dec 2024 23:42:24 +0100 Subject: [PATCH] Fix up UnitDebuff --- UnitDebuff.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/UnitDebuff.lua b/UnitDebuff.lua index ace33b8..ca83a3b 100644 --- a/UnitDebuff.lua +++ b/UnitDebuff.lua @@ -1,8 +1,5 @@ ---@meta ----@param unitId string ----@param index string|number index or name of debuff to query ----@param removable? boolean If 1, only debuffs removable by player will be returned; debuffIndex still begins at 1. ---@return string name The name of the spell or effect of the debuff, or nil if no debuff was found with the specified name or at the specified index. This is the name shown in yellow when you mouse over the icon. ---@return string icon The identifier of (path and filename to) the indicated debuff, or nil if no debuff ---@return number count The number of times the debuff has been applied to the target. Returns 0 for any debuff which doesn't stack. @@ -13,4 +10,9 @@ ---@return boolean isStealable 1 if it is stealable otherwise nil ---@return boolean shouldConsolidate 1 if the buff should be placed in a buff consolidation box (usually long-term effects). ---@return number spellId spell ID of the aura. -UnitDebuff = function(unitId, index, removable) end +---@overload fun(unit: string, index: number) +---@overload fun(unit: string, index: number, filter: string) +---@overload fun(unit: string, name: string) +---@overload fun(unit: string, name: string, rank: string|nil) +---@overload fun(unit: string, name: string, rank: string|nil, filter: auraFilter) +UnitDebuff = function() end