the legionares fought together , each man with his shield partner , so that while one would engage the enemy 's weapon , the other would drive a spear home with a short , hard thrust at the vitals or a leg , toppling the attacker from their precarious position atop the walls .