centurions began to shout orders to their units , and the legions advanced to the lip of the ditch , dressing their ranks and changing out weaponry , to ply their spears against the vord as they tried to climb out .