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