Unit and Agent classes condition