This will help ai mainly on flat maps to place foundations out of fire range of enemy structures, so Petra will less likely loose resources because of useless trying to build stuctures again at some place.
This does not solve elevation bonus given by terrain hight or foundations destroyed by enemy ranged units.