Returns true if the Unit has the given unit state.
hasState = Unit:HasUnitState( state )
UnitState state
An unit state.
boolean hasState