IsUnitType
- Parameters
-
whichUnit unit
whichUnitType unittype
- 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.- note
This native returns a boolean, which when typecasted to integer might be greater than 1. It's probably implemented via a bitset.
- return type
boolean
- Source code
constant native IsUnitType takes unit whichUnit, unittype whichUnitType returns boolean
- Source
- unit.j
- wc3modding.com
- IsUnitType