I think that's quite different. The first looks like "If you're not in the water/swamp or near some location RIGHT NOW you get assigned the mai". The second looks like it assigns everyone to the mai, but it's only effective on them if they're not in the water/etc on a given turn.
However, if you only store those units purely to associate them with the micro_ai I think you could replace all your code with:
Statistics: Posted by white_haired_uncle — Yesterday, 10:59 pm