Resource Availability during resource leveling
If the activity calendar is working day shift only, but the resource calendar is working day and night shift, then the activity will be scheduled on days only.
If the activity calendar is day shift and night shift, but the resource calendar is day shift only, then the activity will be scheduled on days only.
Only if the activity calendar and the resource calendar are day shift and night shift will the activity be scheduled for both days and nights?