liberals battled the carlist troops