IsUnitType
- Parameters
-
whichUnit unit
whichUnitType unittype
- comment
- note
This native returns a boolean, which when typecasted to integer might be greater than 1. It's probably implemented via a bitset.
- note
In past patches this native bugged when used in
conditionfunc
s. The fix back then was to compare with true (==true
). I cannot reproduce the faulty behaviour in patch 1.27 so this is only a note.- patch
1.00
- Source
- common.j
- return type
boolean
- Source code
constant native IsUnitType takes unit whichUnit, unittype whichUnitType returns boolean