Take care in Formula AI

head:
cannot accept null list as input

shortest_dist:
cannot take input in shrouded locations

unit.id:
is unit.type at the moment