if (
                    structure.structureType === STRUCTURE_RAMPART
                    && creep.room.roomPlanner
                    && !creep.room.roomPlanner.isPlannedLocation(structure.pos, 'rampart')
                ) {