adjust CanAttack to fit customUnit in Factory