Which army's defeat compelled Prince Charles to attack?