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
---@param unit string
---@param unit string
---@return 1nil canAttack
---@param unitA string
---@param unitB string
---@return number|nil canAttack 1 or nil
---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
---@param unit string
---@param name string
---@return number health
---Returns a unit's current amount of health
---@overload fun(name: string): number
function UnitHealth(unit, name) end

View File

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