select the closest unit to the ramp on exiting pre-battle equip.