Fix some apis
This commit is contained in:
@@ -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
|
@@ -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
|
@@ -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
|
Reference in New Issue
Block a user