code: def is_gathering(self) -> bool:
          
          return self.orders and self.orders[0].ability.id is AbilityId.HARVEST_GATHER
docs: Checks if a unit is on its way to a mineral field / vespene geyser to mine.