UnitCanAttack
Lua global function
- Function
- Script::UnitCanAttack ui
- Meaning
- Pushes 1 when both units resolve and the first can attack the second, else nil verified, proof one
- Registered in
- global table s_unitFunctions ui
- Registrar pair
- 0x8504d0
- Arguments
- 2 exact
- Returns
1values exact, kinds(nil) | (number)agree
Arguments is the largest Lua stack index the function reads: a floor, never a check. Returns lists the number and the kinds of the values it pushes; ? is unknown. what the columns mean.
Cited in 1
- Player, corpse and attack tests in ui: unit presence, flags, classification and type