IsUnitType
- Parameters
whichUnit unitwhichUnitType 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
conditionfuncs. 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 (raise an issue to discuss on Github or submit a PR)
- return type
boolean- Source code
constant native IsUnitType takes unit whichUnit, unittype whichUnitType returns boolean