Fix some apis

This commit is contained in:
2025-01-01 14:34:30 +01:00
parent 885b385a93
commit 6bf863d5de
3 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
---@diagnostic disable: missing-return, lowercase-global ---@diagnostic disable: missing-return, lowercase-global
---@param unit string ---@param unitA string
---@param unit string ---@param unitB string
---@return 1nil canAttack ---@return number|nil canAttack 1 or nil
---Returns whether one unit can attack another ---Returns whether one unit can attack another
function UnitCanAttack(unit, unit) end function UnitCanAttack(unitA, unitB) end

View File

@@ -1,7 +1,7 @@
---@diagnostic disable: missing-return, lowercase-global ---@diagnostic disable: missing-return, lowercase-global
---@param unit string ---@param unit string
---@param name string
---@return number health ---@return number health
---Returns a unit's current amount of health ---Returns a unit's current amount of health
---@overload fun(name: string): number
function UnitHealth(unit, name) end function UnitHealth(unit, name) end

View File

@@ -1,7 +1,7 @@
---@diagnostic disable: missing-return, lowercase-global ---@diagnostic disable: missing-return, lowercase-global
---@param unit string ---@param unit string
---@param name string
---@return number maxValue ---@return number maxValue
---Returns a unit's maximum health value ---Returns a unit's maximum health value
---@overload fun(name: string): number
function UnitHealthMax(unit, name) end function UnitHealthMax(unit, name) end